summaryrefslogtreecommitdiffstats
path: root/Source/MFCDialog/CMakeSetupDialog.cpp
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2002-12-06 21:03:30 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2002-12-06 21:03:30 (GMT)
commitc1132e4b08da658a1eab86e212a9b205bce63337 (patch)
treee9b0213e0fc9c198c4c31f822a7c509828b8df16 /Source/MFCDialog/CMakeSetupDialog.cpp
parentb0f4a4cb39927bf5490a5c6e3c0584ca277277c3 (diff)
downloadCMake-c1132e4b08da658a1eab86e212a9b205bce63337.zip
CMake-c1132e4b08da658a1eab86e212a9b205bce63337.tar.gz
CMake-c1132e4b08da658a1eab86e212a9b205bce63337.tar.bz2
ENH: move version to title bar
Diffstat (limited to 'Source/MFCDialog/CMakeSetupDialog.cpp')
-rw-r--r--Source/MFCDialog/CMakeSetupDialog.cpp14
1 files changed, 3 insertions, 11 deletions
diff --git a/Source/MFCDialog/CMakeSetupDialog.cpp b/Source/MFCDialog/CMakeSetupDialog.cpp
index f6ca64a..240efcd 100644
--- a/Source/MFCDialog/CMakeSetupDialog.cpp
+++ b/Source/MFCDialog/CMakeSetupDialog.cpp
@@ -171,8 +171,6 @@ 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);
@@ -188,6 +186,7 @@ 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_PROGRESS, m_StatusDisplay);
DDX_Control(pDX, IDC_BuildProjects, m_Configure);
DDX_CBStringExact(pDX, IDC_Generator, m_GeneratorChoiceString);
DDX_Check(pDX, IDC_AdvancedValues, m_AdvancedValues);
@@ -288,10 +287,10 @@ BOOL CMakeSetupDialog::OnInitDialog()
// Set the version number
char tmp[1024];
- sprintf(tmp,"Version %d.%d - %s", cmake::GetMajorVersion(),
+ sprintf(tmp,"CMake %d.%d - %s", cmake::GetMajorVersion(),
cmake::GetMinorVersion(), cmake::GetReleaseVersion());
- SetDlgItemText(IDC_CMAKE_VERSION, tmp);
SetDlgItemText(IDC_PROGRESS, "");
+ this->SetWindowText(tmp);
this->UpdateData(FALSE);
return TRUE; // return TRUE unless you set the focus to a control
}
@@ -987,13 +986,6 @@ void CMakeSetupDialog::OnSize(UINT nType, int cx, int cy)
deltax = int(deltax + m_deltaXRemainder);
m_deltaXRemainder = float(deltax%2);
- m_VersionDisplay.GetWindowRect(&cRect);
- this->ScreenToClient(&cRect);
- m_VersionDisplay.SetWindowPos(&wndBottom, cRect.left, cRect.top + deltay,
- cRect.Width() + deltax/2, cRect.Height(),
- SWP_NOCOPYBITS);
-
-
m_Configure.GetWindowRect(&cRect);
this->ScreenToClient(&cRect);