summaryrefslogtreecommitdiffstats
path: root/Source/MFCDialog/CMakeSetupDialog.cpp
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2002-12-05 20:48:03 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2002-12-05 20:48:03 (GMT)
commite61df962a645d1ec61dc8679fe4e05ce427bb8f4 (patch)
tree6200ac261b86793ea6ba46e34f047612c5ce2614 /Source/MFCDialog/CMakeSetupDialog.cpp
parent7985bc118e336010a5b840ca3c326287649a463c (diff)
downloadCMake-e61df962a645d1ec61dc8679fe4e05ce427bb8f4.zip
CMake-e61df962a645d1ec61dc8679fe4e05ce427bb8f4.tar.gz
CMake-e61df962a645d1ec61dc8679fe4e05ce427bb8f4.tar.bz2
ENH: add status bar and help for items
Diffstat (limited to 'Source/MFCDialog/CMakeSetupDialog.cpp')
-rw-r--r--Source/MFCDialog/CMakeSetupDialog.cpp27
1 files changed, 15 insertions, 12 deletions
diff --git a/Source/MFCDialog/CMakeSetupDialog.cpp b/Source/MFCDialog/CMakeSetupDialog.cpp
index c583020..f6ca64a 100644
--- a/Source/MFCDialog/CMakeSetupDialog.cpp
+++ b/Source/MFCDialog/CMakeSetupDialog.cpp
@@ -970,27 +970,30 @@ void CMakeSetupDialog::OnSize(UINT nType, int cx, int cy)
cRect.Height() + deltay,
SWP_NOCOPYBITS | SWP_NOMOVE | SWP_NOZORDER);
+ m_StatusDisplay.GetWindowRect(&cRect);
+ this->ScreenToClient(&cRect);
+ m_StatusDisplay.SetWindowPos(&wndBottom, cRect.left,
+ cRect.top + deltay,
+ cRect.Width() + deltax, cRect.Height(),
+ SWP_NOCOPYBITS);
- deltax = int(deltax + m_deltaXRemainder);
- m_deltaXRemainder = float(deltax%2);
m_MouseHelp.GetWindowRect(&cRect);
this->ScreenToClient(&cRect);
- m_MouseHelp.SetWindowPos(&wndTop, cRect.left + deltax/2,
+ m_MouseHelp.SetWindowPos(&wndTop, cRect.left ,
cRect.top + deltay,
- 0, 0,
- SWP_NOCOPYBITS | SWP_NOSIZE | SWP_NOZORDER);
+ cRect.Width() + deltax, cRect.Height(),
+ SWP_NOCOPYBITS | SWP_NOZORDER);
+
+ deltax = int(deltax + m_deltaXRemainder);
+ m_deltaXRemainder = float(deltax%2);
m_VersionDisplay.GetWindowRect(&cRect);
- m_VersionDisplay.SetWindowPos(&wndBottom, 5, cy-23,
+ this->ScreenToClient(&cRect);
+ m_VersionDisplay.SetWindowPos(&wndBottom, cRect.left, cRect.top + deltay,
cRect.Width() + deltax/2, cRect.Height(),
SWP_NOCOPYBITS);
- m_StatusDisplay.GetWindowRect(&cRect);
- this->ScreenToClient(&cRect);
- m_StatusDisplay.SetWindowPos(&wndBottom, cRect.left + deltax/2,
- cRect.top + deltay,
- cRect.Width() + deltax/2, cRect.Height(),
- SWP_NOCOPYBITS);
+
m_Configure.GetWindowRect(&cRect);
this->ScreenToClient(&cRect);