diff options
author | Ken Martin <ken.martin@kitware.com> | 2002-12-03 19:09:56 (GMT) |
---|---|---|
committer | Ken Martin <ken.martin@kitware.com> | 2002-12-03 19:09:56 (GMT) |
commit | 37aed9f6c5799c7186610a3e40e4acc13d6ff115 (patch) | |
tree | 35e794951cfb08b913af37222c9b0e95b50b23ca /Source/MFCDialog/CMakeSetupDialog.cpp | |
parent | ec1b07015e77222d72512c552c91db55c0a9a05f (diff) | |
download | CMake-37aed9f6c5799c7186610a3e40e4acc13d6ff115.zip CMake-37aed9f6c5799c7186610a3e40e4acc13d6ff115.tar.gz CMake-37aed9f6c5799c7186610a3e40e4acc13d6ff115.tar.bz2 |
remove code warrior and fixed GUI isues
Diffstat (limited to 'Source/MFCDialog/CMakeSetupDialog.cpp')
-rw-r--r-- | Source/MFCDialog/CMakeSetupDialog.cpp | 63 |
1 files changed, 39 insertions, 24 deletions
diff --git a/Source/MFCDialog/CMakeSetupDialog.cpp b/Source/MFCDialog/CMakeSetupDialog.cpp index a76dc7b..d062e90 100644 --- a/Source/MFCDialog/CMakeSetupDialog.cpp +++ b/Source/MFCDialog/CMakeSetupDialog.cpp @@ -171,6 +171,8 @@ void CMakeSetupDialog::DoDataExchange(CDataExchange* pDX) { CDialog::DoDataExchange(pDX); //{{AFX_DATA_MAP(CMakeSetupDialog) + DDX_Control(pDX, IDC_CMAKE_VERSION, m_VersionDisplay); + DDX_Control(pDX, IDC_PROGRESS, m_StatusDisplay); DDX_Control(pDX, IDC_AdvancedValues, m_AdvancedValuesControl); DDX_Control(pDX, IDC_BuildForLabel, m_BuildForLabel); DDX_Control(pDX, IDC_BROWSE_SOURCE, m_BrowseSource); @@ -186,7 +188,6 @@ void CMakeSetupDialog::DoDataExchange(CDataExchange* pDX) DDX_Control(pDX, IDC_WhereBuild, m_WhereBuildControl); DDX_Control(pDX, IDC_LIST2, m_CacheEntriesList); DDX_Control(pDX, IDC_MouseHelpCaption, m_MouseHelp); - DDX_Control(pDX, IDC_CMAKE_VERSION, m_VersionDisplay); DDX_Control(pDX, IDC_BuildProjects, m_Configure); DDX_CBStringExact(pDX, IDC_Generator, m_GeneratorChoiceString); DDX_Check(pDX, IDC_AdvancedValues, m_AdvancedValues); @@ -918,56 +919,58 @@ void CMakeSetupDialog::OnSize(UINT nType, int cx, int cy) m_AdvancedValuesControl.GetWindowRect(&cRect); this->ScreenToClient(&cRect); m_AdvancedValuesControl.SetWindowPos(&wndTop, cRect.left + deltax, - cRect.top, - 0, 0, - SWP_NOSIZE | SWP_NOZORDER); + cRect.top, + 0, 0, + SWP_NOCOPYBITS | + SWP_NOSIZE | SWP_NOZORDER); m_BuildForLabel.GetWindowRect(&cRect); this->ScreenToClient(&cRect); m_BuildForLabel.SetWindowPos(&wndTop, cRect.left + deltax, cRect.top, 0, 0, - SWP_NOSIZE | SWP_NOZORDER); + SWP_NOCOPYBITS | SWP_NOSIZE | SWP_NOZORDER); m_GeneratorChoice.GetWindowRect(&cRect); this->ScreenToClient(&cRect); m_GeneratorChoice.SetWindowPos(&wndTop, cRect.left + deltax, cRect.top, 0, 0, - SWP_NOSIZE | SWP_NOZORDER); + SWP_NOCOPYBITS | SWP_NOSIZE | SWP_NOZORDER); m_BrowseSource.GetWindowRect(&cRect); this->ScreenToClient(&cRect); m_BrowseSource.SetWindowPos(&wndTop, cRect.left + deltax, cRect.top, 0, 0, - SWP_NOSIZE | SWP_NOZORDER); + SWP_NOCOPYBITS | SWP_NOSIZE | SWP_NOZORDER); m_BrowseBuild.GetWindowRect(&cRect); this->ScreenToClient(&cRect); m_BrowseBuild.SetWindowPos(&wndTop, cRect.left + deltax, - cRect.top, - 0, 0, - SWP_NOSIZE | SWP_NOZORDER); + cRect.top, + 0, 0, + SWP_NOCOPYBITS | SWP_NOSIZE | SWP_NOZORDER); m_WhereSourceControl.GetWindowRect(&cRect); m_WhereSourceControl.SetWindowPos(&wndTop, cRect.left, cRect.top, cRect.Width() + deltax, cRect.Height() + deltay, + SWP_NOCOPYBITS | SWP_NOMOVE | SWP_NOZORDER); m_WhereBuildControl.GetWindowRect(&cRect); m_WhereBuildControl.SetWindowPos(&wndTop, cRect.left, cRect.top, - cRect.Width() + deltax, - cRect.Height() + deltay, - SWP_NOMOVE | SWP_NOZORDER); + cRect.Width() + deltax, + cRect.Height() + deltay, + SWP_NOCOPYBITS | + SWP_NOMOVE | SWP_NOZORDER); m_ListFrame.GetWindowRect(&cRect); m_ListFrame.SetWindowPos(&wndTop, cRect.left, cRect.top, cRect.Width() + deltax, cRect.Height() + deltay, - SWP_NOMOVE | SWP_NOZORDER); + SWP_NOCOPYBITS | SWP_NOMOVE | SWP_NOZORDER); m_CacheEntriesList.GetWindowRect(&cRect); m_CacheEntriesList.SetWindowPos(&wndTop, cRect.left, cRect.top, - cRect.Width() + deltax, - cRect.Height() + deltay, - SWP_NOMOVE | SWP_NOZORDER); - m_VersionDisplay.SetWindowPos(&wndTop, 5, cy-23, 0, 0, - SWP_NOSIZE | SWP_NOZORDER); + cRect.Width() + deltax, + cRect.Height() + deltay, + SWP_NOCOPYBITS | SWP_NOMOVE | SWP_NOZORDER); + deltax = int(deltax + m_deltaXRemainder); m_deltaXRemainder = float(deltax%2); @@ -976,32 +979,44 @@ void CMakeSetupDialog::OnSize(UINT nType, int cx, int cy) m_MouseHelp.SetWindowPos(&wndTop, cRect.left + deltax/2, cRect.top + deltay, 0, 0, - SWP_NOSIZE | SWP_NOZORDER); + SWP_NOCOPYBITS | SWP_NOSIZE | SWP_NOZORDER); + + m_VersionDisplay.GetWindowRect(&cRect); + m_VersionDisplay.SetWindowPos(&wndBottom, 5, cy-23, + 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); m_Configure.SetWindowPos(&wndTop, cRect.left + deltax/2, cRect.top + deltay, 0, 0, - SWP_NOSIZE | SWP_NOZORDER); + SWP_NOCOPYBITS | SWP_NOSIZE); m_CancelButton.GetWindowRect(&cRect); this->ScreenToClient(&cRect); m_CancelButton.SetWindowPos(&wndTop, cRect.left + deltax/2, cRect.top + deltay, 0, 0, - SWP_NOSIZE | SWP_NOZORDER); + SWP_NOCOPYBITS | SWP_NOSIZE); m_OKButton.GetWindowRect(&cRect); this->ScreenToClient(&cRect); m_OKButton.SetWindowPos(&wndTop, cRect.left + deltax/2, cRect.top + deltay, 0, 0, - SWP_NOSIZE | SWP_NOZORDER); + SWP_NOCOPYBITS | SWP_NOSIZE); m_HelpButton.GetWindowRect(&cRect); this->ScreenToClient(&cRect); m_HelpButton.SetWindowPos(&wndTop, cRect.left + deltax/2, cRect.top + deltay, 0, 0, - SWP_NOSIZE | SWP_NOZORDER); + SWP_NOCOPYBITS | SWP_NOSIZE); } } |