diff --git a/PowerEditor/src/Notepad_plus.cpp b/PowerEditor/src/Notepad_plus.cpp index 8fa1994e7..12ddc6e2f 100644 --- a/PowerEditor/src/Notepad_plus.cpp +++ b/PowerEditor/src/Notepad_plus.cpp @@ -7132,6 +7132,8 @@ LRESULT Notepad_plus::runProc(HWND hwnd, UINT Message, WPARAM wParam, LPARAM lPa bool oldVal = _mainDocTab.setHideTabBarStatus(hide); _subDocTab.setHideTabBarStatus(hide); ::SendMessage(_hSelf, WM_SIZE, 0, 0); + ::ShowWindow(_mainDocTab.getHSelf(), hide?SW_HIDE:SW_SHOW); + ::ShowWindow(_subDocTab.getHSelf(), hide?SW_HIDE:SW_SHOW); return oldVal; } diff --git a/PowerEditor/src/Notepad_plus.rc b/PowerEditor/src/Notepad_plus.rc index 21a7bea4e..e8cf135f3 100644 --- a/PowerEditor/src/Notepad_plus.rc +++ b/PowerEditor/src/Notepad_plus.rc @@ -499,6 +499,8 @@ BEGIN LTEXT "Home Page :",IDC_STATIC,21,54,47,8 LTEXT "http://notepad-plus.sourceforge.net/",IDC_HOME_ADDR,78,54,126,8 EDITTEXT IDC_LICENCE_EDIT,31,99,209,96,ES_MULTILINE | ES_AUTOVSCROLL | ES_READONLY | NOT WS_BORDER | WS_VSCROLL + //LS: CompileDateInAboutDialog: Automatically insert compile date as additional version info! + EDITTEXT IDC_BUILD_DATETIME,50,25,150,10, ES_READONLY | NOT WS_BORDER CONTROL "",IDI_M30ICON,"Static",SS_OWNERDRAW,21,10,20,20 END diff --git a/PowerEditor/src/WinControls/AboutDlg/AboutDlg.cpp b/PowerEditor/src/WinControls/AboutDlg/AboutDlg.cpp index dca2a56d9..5440d197f 100644 --- a/PowerEditor/src/WinControls/AboutDlg/AboutDlg.cpp +++ b/PowerEditor/src/WinControls/AboutDlg/AboutDlg.cpp @@ -1,5 +1,5 @@ //this file is part of notepad++ -//Copyright (C)2003 Don HO ( donho@altern.org ) +//Copyright (C)2003 Don HO // //This program is free software; you can redistribute it and/or //modify it under the terms of the GNU General Public License @@ -24,6 +24,15 @@ BOOL CALLBACK AboutDlg::run_dlgProc(UINT message, WPARAM wParam, LPARAM lParam) { case WM_INITDIALOG : { + //LS: CompileDateInAboutDialog: Automatically insert compile date as additional version info in About-dialog! + HWND compileDateHandle = ::GetDlgItem(_hSelf, IDC_BUILD_DATETIME); + string buildTime = "Build time : "; + buildTime += __DATE__; + buildTime += " - "; + buildTime += __TIME__; + ::SendMessage(compileDateHandle, WM_SETTEXT, 0, (LPARAM)buildTime.c_str()); + ::EnableWindow(compileDateHandle, FALSE); + HWND licenceEditHandle = ::GetDlgItem(_hSelf, IDC_LICENCE_EDIT); ::SendMessage(licenceEditHandle, WM_SETTEXT, 0, (LPARAM)LICENCE_TXT); diff --git a/PowerEditor/src/resource.h b/PowerEditor/src/resource.h index 06f74a5c6..b0f3ed7a4 100644 --- a/PowerEditor/src/resource.h +++ b/PowerEditor/src/resource.h @@ -168,8 +168,6 @@ //#define IDM 40000 - - #define IDCMD 50000 //#define IDM_EDIT_AUTOCOMPLETE (IDCMD+0) //#define IDM_EDIT_AUTOCOMPLETE_CURRENTFILE (IDCMD+1) @@ -229,7 +227,7 @@ #define IDC_EMAIL_ADDR 1703 #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 IDD_USER_DEFINE_BOX 1800 //#define IDD_RUN_DLG 1900