Show Notepad++.exe bitness in about box
This commit is contained in:
parent
9835445c8b
commit
c059cc03dc
@ -898,6 +898,7 @@ BEGIN
|
||||
CONTROL "",IDI_CHAMELEON,"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 "bit",IDC_VERSION_BIT,150,20,140,11
|
||||
LTEXT "Author :",IDC_STATIC,21,45,31,8
|
||||
LTEXT "Notepad++ team",IDC_AUTHOR_NAME,78,45,70,8
|
||||
LTEXT "Home Page :",IDC_STATIC,21,59,47,8
|
||||
|
@ -961,6 +961,8 @@ bool NppParameters::load()
|
||||
for (int i = 0 ; i < NB_LANG ; _langList[i] = NULL, ++i)
|
||||
{}
|
||||
|
||||
_isx64 = sizeof(void *) == 8;
|
||||
|
||||
// Make localConf.xml path
|
||||
generic_string localConfPath(_nppPath);
|
||||
PathAppend(localConfPath, localConfFile);
|
||||
|
@ -47,6 +47,10 @@ INT_PTR CALLBACK AboutDlg::run_dlgProc(UINT message, WPARAM wParam, LPARAM lPara
|
||||
buildTime += TEXT(" - ");
|
||||
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());
|
||||
::EnableWindow(compileDateHandle, FALSE);
|
||||
|
||||
@ -62,7 +66,6 @@ INT_PTR CALLBACK AboutDlg::run_dlgProc(UINT message, WPARAM wParam, LPARAM lPara
|
||||
|
||||
getClientRect(_rc);
|
||||
|
||||
NppParameters *pNppParam = NppParameters::getInstance();
|
||||
ETDTProc enableDlgTheme = (ETDTProc)pNppParam->getEnableThemeDlgTexture();
|
||||
if (enableDlgTheme)
|
||||
{
|
||||
|
@ -284,6 +284,7 @@
|
||||
#define IDC_ONLINEHELP_ADDR 1704
|
||||
#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_VERSION_BIT 1707
|
||||
|
||||
#define IDD_DEBUGINFOBOX 1750
|
||||
#define IDC_DEBUGINFO_EDIT 1751
|
||||
|
Loading…
Reference in New Issue
Block a user