From ee90d7486a9ca54f9b1d85003273d435aeed8bcc Mon Sep 17 00:00:00 2001 From: Charlie Fenton Date: Fri, 17 Nov 2006 12:15:46 +0000 Subject: [PATCH] *** empty log message *** svn path=/trunk/boinc/; revision=11545 --- checkin_notes | 3 ++- clientgui/sg_DlgMessages.cpp | 10 ++++++++++ clientgui/sg_DlgMessages.h | 2 ++ 3 files changed, 14 insertions(+), 1 deletion(-) diff --git a/checkin_notes b/checkin_notes index 490e8c682c..2380c31d21 100755 --- a/checkin_notes +++ b/checkin_notes @@ -12672,7 +12672,8 @@ Charlie 17 Nov 2006 doesn't overlap window's grow icon - Mac MGR: Fix ToolTip / Help Message for Mac: substitute "command key" for "control key". + - MGR: Save state if close box on SG Message Dialog window frame clicked. clientgui/ - sg_DlgMessages.cpp + sg_DlgMessages.cpp, h ViewMessages.cpp diff --git a/clientgui/sg_DlgMessages.cpp b/clientgui/sg_DlgMessages.cpp index 975d896ff2..2b51b77644 100644 --- a/clientgui/sg_DlgMessages.cpp +++ b/clientgui/sg_DlgMessages.cpp @@ -636,6 +636,16 @@ CDlgMessages::CDlgMessages( wxWindow* parent, wxWindowID id, const wxString& cap } +CDlgMessages::~CDlgMessages() { + wxLogTrace(wxT("Function Start/End"), wxT("CDlgMessages::CDlgMessages - Destructor Function Begin")); + + SaveState(); // Save state if close box on window frame clicked + + wxLogTrace(wxT("Function Start/End"), wxT("CDlgMessages::CDlgMessages - Destructor Function End")); +} + + + /*! * CDlgMessages creator */ diff --git a/clientgui/sg_DlgMessages.h b/clientgui/sg_DlgMessages.h index e653a8d317..1d97e2fab4 100644 --- a/clientgui/sg_DlgMessages.h +++ b/clientgui/sg_DlgMessages.h @@ -158,6 +158,8 @@ public: CDlgMessages( ); CDlgMessages( wxWindow* parent, wxWindowID id = SYMBOL_CDLGMESSAGES_IDNAME, const wxString& caption = SYMBOL_CDLGMESSAGES_TITLE, const wxPoint& pos = SYMBOL_CDLGMESSAGES_POSITION, const wxSize& size = SYMBOL_CDLGMESSAGES_SIZE, long style = SYMBOL_CDLGMESSAGES_STYLE ); + ~CDlgMessages(); + /// Creation bool Create( wxWindow* parent, wxWindowID id = SYMBOL_CDLGMESSAGES_IDNAME, const wxString& caption = SYMBOL_CDLGMESSAGES_TITLE, const wxPoint& pos = SYMBOL_CDLGMESSAGES_POSITION, const wxSize& size = SYMBOL_CDLGMESSAGES_SIZE, long style = SYMBOL_CDLGMESSAGES_STYLE );