diff --git a/Source/MFCDialog/CMakeSetupDialog.cpp b/Source/MFCDialog/CMakeSetupDialog.cpp index f7f9e4977..719696ebd 100644 --- a/Source/MFCDialog/CMakeSetupDialog.cpp +++ b/Source/MFCDialog/CMakeSetupDialog.cpp @@ -429,7 +429,7 @@ void CMakeSetupDialog::SaveToRegistry() // write the size of the dialog CRect size; - this->GetClientRect(&size); + this->GetWindowRect(&size); unsigned long width = size.Width(); unsigned long height = size.Height(); RegSetValueEx(hKey, _T("Width"), 0, REG_DWORD,