From 0e34d281c7df993cf5f72d60c16f5205d0fc06ac Mon Sep 17 00:00:00 2001 From: fcolin Date: Thu, 1 Feb 2007 13:08:31 +0000 Subject: Utilisateur : Fcolin Date : 18/11/05 Heure : 11:46 Archivé dans $/Bus/IvyProbe Commentaire: (vss 4) --- IvyProbe/ETSLayout.cpp | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'IvyProbe/ETSLayout.cpp') diff --git a/IvyProbe/ETSLayout.cpp b/IvyProbe/ETSLayout.cpp index 921e129..994c5ce 100644 --- a/IvyProbe/ETSLayout.cpp +++ b/IvyProbe/ETSLayout.cpp @@ -545,8 +545,10 @@ void ETSLayoutMgr::EraseBkgnd(CDC* pDC) pWndChild = pWndChild->GetNextWindow(); } - - HBRUSH hBrBack = (HBRUSH) ::GetClassLong(GetWnd()->GetSafeHwnd(), GCL_HBRBACKGROUND) ; + HBRUSH hBrBack = 0; +#ifdef GCL_HBRBACKGROUND + hBrBack = (HBRUSH) ::GetClassLong(GetWnd()->GetSafeHwnd(), GCL_HBRBACKGROUND) ; +#endif if( hBrBack == 0 ) hBrBack = ::GetSysColorBrush(COLOR_BTNFACE); @@ -1366,7 +1368,7 @@ bool ETSLayoutMgr::Pane::resizeToRelative(int& availSpace, CArray& size // come to endless looping. Save the amount of space actually distributed in this iteration int relDist = 0; - for(i=0; i& size } // Fixup Relative: invert all negative (limited) sized to correct value - for(i=0; imodeResize() & RELATIVE_HORZ) && sizePrimary[i] < 0) || @@ -1555,7 +1557,7 @@ bool ETSLayoutMgr::Pane::resizeToGreedy(int& availSpace, int nGreedy, CArray