Index: src/ch/TMsgBox.h =================================================================== diff -u -N -r2648234e4e3ce1cf79d1bad88a94d07315e1e694 -r75318f0d3808d8d3c02dbc333c80b6d6e07fae13 --- src/ch/TMsgBox.h (.../TMsgBox.h) (revision 2648234e4e3ce1cf79d1bad88a94d07315e1e694) +++ src/ch/TMsgBox.h (.../TMsgBox.h) (revision 75318f0d3808d8d3c02dbc333c80b6d6e07fae13) @@ -48,9 +48,20 @@ void SetCheckBoxMessage(UINT uiMsgResourceID); void SetCheckBoxMessage(const CString& strCheckboxMessage); + bool WasChecked() const; + + static INT_PTR MsgBox(UINT uiMsgResourceID, EButtonConfig eButtons, EIconConfig eIcon, UINT uiCheckboxResourceID = 0, bool* pbWasChecked = NULL, CWnd* pParent = NULL); + static INT_PTR MsgBox(const CString& strMessage, EButtonConfig eButtons, EIconConfig eIcon, const CString& strCheckboxText = CString(), bool* pbWasChecked = NULL, CWnd* pParent = NULL); + protected: virtual void DoDataExchange(CDataExchange* pDX); virtual BOOL OnInitDialog(); + + void CalculateMinimumDlgSize(); + + void InitRichEdit(); + + virtual void OnCancel(); void OnGetMinMaxInfo(MINMAXINFO* lpMMI); void InitializeControls(); @@ -80,7 +91,10 @@ CRect m_rcRichEdit; CRect m_rcDialogMinSize; + int m_iCheckBoxHeight; + bool m_bCheckboxChecked; + protected: DECLARE_MESSAGE_MAP() DECLARE_DYNAMIC(TMsgBox)