From 8c1a5f557969bb3b2f22cbc551965fa70edc7847 Mon Sep 17 00:00:00 2001 From: donho Date: Sat, 15 Dec 2007 22:31:15 +0000 Subject: [PATCH] [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 --- PowerEditor/src/Notepad_plus.cpp | 2 ++ PowerEditor/src/Notepad_plus.rc | 2 ++ PowerEditor/src/WinControls/AboutDlg/AboutDlg.cpp | 11 ++++++++++- PowerEditor/src/resource.h | 4 +--- 4 files changed, 15 insertions(+), 4 deletions(-) diff --git a/PowerEditor/src/Notepad_plus.cpp b/PowerEditor/src/Notepad_plus.cpp index 8fa1994e..12ddc6e2 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 21a7bea4..e8cf135f 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 dca2a56d..5440d197 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 06f74a5c..b0f3ed7a 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