[GME-commit] GMESRC/GME/Gme ChildFrm.h,1.2,1.3

gme-commit at list.isis.vanderbilt.edu gme-commit at list.isis.vanderbilt.edu
Tue May 18 12:04:28 CDT 2004


Update of /var/lib/gme/GMESRC/GME/Gme
In directory braindrain:/tmp/cvs-serv32475/Gme

Modified Files:
	ChildFrm.h 
Log Message:
Problem fixed: active window title for child frames

CVS User: volgy

Index: ChildFrm.h
===================================================================
RCS file: /var/lib/gme/GMESRC/GME/Gme/ChildFrm.h,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** ChildFrm.h	3 Oct 2000 22:54:00 -0000	1.2
--- ChildFrm.h	18 May 2004 16:04:07 -0000	1.3
***************
*** 12,15 ****
--- 12,17 ----
  #include "ModelPropertiesDlgBar.h"
  
+ #define _countof(array) (sizeof(array)/sizeof(array[0]))
+ 
  class CChildFrame : public CMDIChildWnd
  {
***************
*** 26,30 ****
  // Operations
  public:
! 	void OnUpdateFrameTitle(BOOL /*x*/) { SetWindowText(title); };
  
  // Overrides
--- 28,38 ----
  // Operations
  public:
! 	virtual void OnUpdateFrameTitle(BOOL /* x */) { 
! 		TCHAR szOld[256];
! 		if (GetWindowText(szOld, _countof(szOld)) != title.GetLength() ||
! 			lstrcmp(szOld, title) != 0) {
! 			SetWindowText(title); 
! 		}
! 	};
  
  // Overrides



More information about the GME-commit mailing list