summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfcolin2007-02-01 13:08:31 +0000
committerfcolin2007-02-01 13:08:31 +0000
commit0e34d281c7df993cf5f72d60c16f5205d0fc06ac (patch)
treed5f997cff930201134f744dfae32ee66fbe46116
parent3dfc319868dcadc1da4b88f126ff5c3cdab760c7 (diff)
downloadivy-cplusplus-0e34d281c7df993cf5f72d60c16f5205d0fc06ac.zip
ivy-cplusplus-0e34d281c7df993cf5f72d60c16f5205d0fc06ac.tar.gz
ivy-cplusplus-0e34d281c7df993cf5f72d60c16f5205d0fc06ac.tar.bz2
ivy-cplusplus-0e34d281c7df993cf5f72d60c16f5205d0fc06ac.tar.xz
Utilisateur : Fcolin Date : 18/11/05 Heure : 11:46 Archivé dans $/Bus/IvyProbe Commentaire: (vss 4)
-rw-r--r--IvyProbe/ETSLayout.cpp16
1 files changed, 9 insertions, 7 deletions
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<int,int>& size
// come to endless looping. Save the amount of space actually distributed in this iteration
int relDist = 0;
- for(i=0; i<m_paneItems.GetSize(); ++i) {
+ for(int i=0; i<m_paneItems.GetSize(); ++i) {
CPaneBase pItem = m_paneItems[i];
@@ -1429,7 +1431,7 @@ bool ETSLayoutMgr::Pane::resizeToRelative(int& availSpace, CArray<int,int>& size
}
// Fixup Relative: invert all negative (limited) sized to correct value
- for(i=0; i<m_paneItems.GetSize(); ++i) {
+ for(int i=0; i<m_paneItems.GetSize(); ++i) {
CPaneBase pItem = m_paneItems[i];
if( (m_Orientation==HORIZONTAL && (pItem->modeResize() & RELATIVE_HORZ) && sizePrimary[i] < 0)
||
@@ -1555,7 +1557,7 @@ bool ETSLayoutMgr::Pane::resizeToGreedy(int& availSpace, int nGreedy, CArray<int
// at least on not limited item present
bAtLeastOne = false;
- for(i=0; i<m_paneItems.GetSize(); ++i) {
+ for(int i=0; i<m_paneItems.GetSize(); ++i) {
CPaneBase pItem = m_paneItems[i];
@@ -1633,7 +1635,7 @@ bool ETSLayoutMgr::Pane::resizeToGreedy(int& availSpace, int nGreedy, CArray<int
// still difference, some space left
// are there any items which are minimum-limited where we can give more space?
- for(i=0; i<m_paneItems.GetSize() && greedyDiff!=0; ++i) {
+ for(int i=0; i<m_paneItems.GetSize() && greedyDiff!=0; ++i) {
CPaneBase pItem = m_paneItems[i];
if( (m_Orientation==HORIZONTAL
@@ -1665,7 +1667,7 @@ bool ETSLayoutMgr::Pane::resizeToGreedy(int& availSpace, int nGreedy, CArray<int
// Fixup Greedy III: invert all negative (limited) sized to correct value
- for(i=0; i<m_paneItems.GetSize(); ++i) {
+ for(int i=0; i<m_paneItems.GetSize(); ++i) {
CPaneBase pItem = m_paneItems[i];
if( (m_Orientation==HORIZONTAL