[NEW_FEATURE] Add build date - time in about box.

Fix the glitch of display of hidding tab bar.

git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@86 f5eea248-9336-0410-98b8-ebc06183d4e3
This commit is contained in:
donho 2007-12-15 22:31:15 +00:00
parent 6d1521e995
commit 8c1a5f5579
4 changed files with 15 additions and 4 deletions

View File

@ -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;
}

View File

@ -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

View File

@ -1,5 +1,5 @@
//this file is part of notepad++
//Copyright (C)2003 Don HO ( donho@altern.org )
//Copyright (C)2003 Don HO <don.h@free.fr>
//
//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);

View File

@ -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