Show Notepad++.exe bitness in about box

This commit is contained in:
Linquize 2016-03-13 11:11:59 +08:00 committed by Don HO
parent 9835445c8b
commit c059cc03dc
4 changed files with 8 additions and 1 deletions

View File

@ -898,6 +898,7 @@ BEGIN
CONTROL "",IDI_CHAMELEON,"Static",SS_OWNERDRAW,20,5,64,64 CONTROL "",IDI_CHAMELEON,"Static",SS_OWNERDRAW,20,5,64,64
//CONTROL "",IDI_JESUISCHARLIE,"Static",SS_OWNERDRAW,20,5,64,64 //CONTROL "",IDI_JESUISCHARLIE,"Static",SS_OWNERDRAW,20,5,64,64
LTEXT NOTEPAD_PLUS_VERSION, IDC_STATIC,70,20,140,11 LTEXT NOTEPAD_PLUS_VERSION, IDC_STATIC,70,20,140,11
LTEXT "bit",IDC_VERSION_BIT,150,20,140,11
LTEXT "Author :",IDC_STATIC,21,45,31,8 LTEXT "Author :",IDC_STATIC,21,45,31,8
LTEXT "Notepad++ team",IDC_AUTHOR_NAME,78,45,70,8 LTEXT "Notepad++ team",IDC_AUTHOR_NAME,78,45,70,8
LTEXT "Home Page :",IDC_STATIC,21,59,47,8 LTEXT "Home Page :",IDC_STATIC,21,59,47,8

View File

@ -961,6 +961,8 @@ bool NppParameters::load()
for (int i = 0 ; i < NB_LANG ; _langList[i] = NULL, ++i) for (int i = 0 ; i < NB_LANG ; _langList[i] = NULL, ++i)
{} {}
_isx64 = sizeof(void *) == 8;
// Make localConf.xml path // Make localConf.xml path
generic_string localConfPath(_nppPath); generic_string localConfPath(_nppPath);
PathAppend(localConfPath, localConfFile); PathAppend(localConfPath, localConfFile);

View File

@ -47,6 +47,10 @@ INT_PTR CALLBACK AboutDlg::run_dlgProc(UINT message, WPARAM wParam, LPARAM lPara
buildTime += TEXT(" - "); buildTime += TEXT(" - ");
buildTime += wmc->char2wchar(__TIME__, CP_ACP); buildTime += wmc->char2wchar(__TIME__, CP_ACP);
NppParameters *pNppParam = NppParameters::getInstance();
LPCTSTR bitness = pNppParam ->isx64() ? TEXT("(64-bit)") : TEXT("(32-bit)");
::SetDlgItemText(_hSelf, IDC_VERSION_BIT, bitness);
::SendMessage(compileDateHandle, WM_SETTEXT, 0, (LPARAM)buildTime.c_str()); ::SendMessage(compileDateHandle, WM_SETTEXT, 0, (LPARAM)buildTime.c_str());
::EnableWindow(compileDateHandle, FALSE); ::EnableWindow(compileDateHandle, FALSE);
@ -62,7 +66,6 @@ INT_PTR CALLBACK AboutDlg::run_dlgProc(UINT message, WPARAM wParam, LPARAM lPara
getClientRect(_rc); getClientRect(_rc);
NppParameters *pNppParam = NppParameters::getInstance();
ETDTProc enableDlgTheme = (ETDTProc)pNppParam->getEnableThemeDlgTexture(); ETDTProc enableDlgTheme = (ETDTProc)pNppParam->getEnableThemeDlgTexture();
if (enableDlgTheme) if (enableDlgTheme)
{ {

View File

@ -284,6 +284,7 @@
#define IDC_ONLINEHELP_ADDR 1704 #define IDC_ONLINEHELP_ADDR 1704
#define IDC_AUTHOR_NAME 1705 #define IDC_AUTHOR_NAME 1705
#define IDC_BUILD_DATETIME 1706 //LS: CompileDateInAboutDialog: Automatically insert compile date as additional version info in About-dialog! #define IDC_BUILD_DATETIME 1706 //LS: CompileDateInAboutDialog: Automatically insert compile date as additional version info in About-dialog!
#define IDC_VERSION_BIT 1707
#define IDD_DEBUGINFOBOX 1750 #define IDD_DEBUGINFOBOX 1750
#define IDC_DEBUGINFO_EDIT 1751 #define IDC_DEBUGINFO_EDIT 1751