Index: src/ch/FeedbackReplaceDlg.cpp =================================================================== diff -u -r3921d82d9605d98b2281f3f42d9f9c8385b89a3e -rbd80324e4ddd3b5ebcd44ec0a8f3b9cbe7def123 --- src/ch/FeedbackReplaceDlg.cpp (.../FeedbackReplaceDlg.cpp) (revision 3921d82d9605d98b2281f3f42d9f9c8385b89a3e) +++ src/ch/FeedbackReplaceDlg.cpp (.../FeedbackReplaceDlg.cpp) (revision bd80324e4ddd3b5ebcd44ec0a8f3b9cbe7def123) @@ -50,6 +50,7 @@ ON_BN_CLICKED(IDC_SKIP_BUTTON, &CFeedbackReplaceDlg::OnBnClickedSkipButton) ON_BN_CLICKED(IDC_PAUSE_BUTTON, &CFeedbackReplaceDlg::OnBnClickedPauseButton) ON_BN_CLICKED(IDC_CANCEL_BUTTON, &CFeedbackReplaceDlg::OnBnClickedCancelButton) + ON_WM_GETMINMAXINFO() END_MESSAGE_MAP() @@ -59,6 +60,8 @@ { CLanguageDialog::OnInitDialog(); + GetWindowRect(&m_rcInitial); + // set dialog icon HICON hIcon = AfxGetApp()->LoadIcon(IDR_MAINFRAME); SetIcon(hIcon, FALSE); @@ -75,21 +78,21 @@ AddResizableControl(IDC_SRC_MODIFIEDDATE_EDIT, 0.0, 0.0, 1.0, 0.0); AddResizableControl(IDC_01_STATIC, 0.0, 0.5, 1.0, 0.0); - AddResizableControl(IDC_DST_ICON_STATIC, 0.0, 0.5, 0.0, 0.0); + AddResizableControl(IDC_DST_ICON_STATIC, 0.0, 0.0, 0.0, 0.0); AddResizableControl(IDC_DSTFILE_STATIC, 0.0, 0.0, 1.0, 0.0); - AddResizableControl(IDC_DST_FILENAME_EDIT, 0.0, 1.0, 1.0, 0.0); - AddResizableControl(IDC_DST_PATH_EDIT, 0.0, 1.0, 1.0, 0.0); - AddResizableControl(IDC_DST_FILESIZE_EDIT, 0.0, 1.0, 1.0, 0.0); - AddResizableControl(IDC_DST_MODIFIEDDATE_EDIT, 0.0, 1.0, 1.0, 0.0); + AddResizableControl(IDC_DST_FILENAME_EDIT, 0.0, 0.0, 1.0, 0.0); + AddResizableControl(IDC_DST_PATH_EDIT, 0.0, 0.0, 1.0, 0.0); + AddResizableControl(IDC_DST_FILESIZE_EDIT, 0.0, 0.0, 1.0, 0.0); + AddResizableControl(IDC_DST_MODIFIEDDATE_EDIT, 0.0, 0.0, 1.0, 0.0); - AddResizableControl(IDC_COPY_REST_BUTTON, 0.0, 1.0, 0.0, 0.0); - AddResizableControl(IDC_SKIP_BUTTON, 0.0, 1.0, 0.0, 0.0); - AddResizableControl(IDC_PAUSE_BUTTON, 0.0, 1.0, 0.0, 0.0); - AddResizableControl(IDC_CANCEL_BUTTON, 0.0, 1.0, 0.0, 0.0); - AddResizableControl(IDC_REPLACE_BUTTON, 0.0, 1.0, 0.0, 0.0); + AddResizableControl(IDC_REPLACE_BUTTON, 0.0, 0.0, 0.2, 0.0); + AddResizableControl(IDC_COPY_REST_BUTTON, 0.2, 0.0, 0.2, 0.0); + AddResizableControl(IDC_SKIP_BUTTON, 0.4, 0.0, 0.2, 0.0); + AddResizableControl(IDC_PAUSE_BUTTON, 0.6, 0.0, 0.2, 0.0); + AddResizableControl(IDC_CANCEL_BUTTON, 0.8, 0.0, 0.2, 0.0); - AddResizableControl(IDC_ALL_ITEMS_CHECK, 0.0, 1.0, 1.0, 0.0); + AddResizableControl(IDC_ALL_ITEMS_CHECK, 0.0, 0.0, 1.0, 0.0); InitializeResizableControls(); @@ -224,3 +227,12 @@ { return m_bAllItems != FALSE; } + +void CFeedbackReplaceDlg::OnGetMinMaxInfo(MINMAXINFO* lpMMI) +{ + if(m_rcInitial.Width() != 0 && m_rcInitial.Height() != 0) + { + lpMMI->ptMinTrackSize.y = m_rcInitial.Height(); + lpMMI->ptMaxTrackSize.y = m_rcInitial.Height(); + } +} Index: src/ch/FeedbackReplaceDlg.h =================================================================== diff -u -r0d5b67ee96b435d63f7bf075dc8e28603793b187 -rbd80324e4ddd3b5ebcd44ec0a8f3b9cbe7def123 --- src/ch/FeedbackReplaceDlg.h (.../FeedbackReplaceDlg.h) (revision 0d5b67ee96b435d63f7bf075dc8e28603793b187) +++ src/ch/FeedbackReplaceDlg.h (.../FeedbackReplaceDlg.h) (revision bd80324e4ddd3b5ebcd44ec0a8f3b9cbe7def123) @@ -61,16 +61,20 @@ BOOL m_bAllItems; + CRect m_rcInitial; + protected: const chengine::TFileInfo& m_rSrcFile; const chengine::TFileInfo& m_rDstFile; -public: +protected: afx_msg void OnBnClickedReplaceButton(); afx_msg void OnBnClickedCopyRestButton(); afx_msg void OnBnClickedSkipButton(); afx_msg void OnBnClickedPauseButton(); afx_msg void OnBnClickedCancelButton(); + + void OnGetMinMaxInfo(MINMAXINFO* lpMMI); }; #endif