From 8e96244bdf77c6103c43351c874350521549631c 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) --- Bus/IvyProbe/ETSLayout.cpp | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/Bus/IvyProbe/ETSLayout.cpp b/Bus/IvyProbe/ETSLayout.cpp index 921e129..994c5ce 100644 --- a/Bus/IvyProbe/ETSLayout.cpp +++ b/Bus/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