Index: src/ch/TMsgBox.h =================================================================== diff -u -r096451721a732567aad7e103bfe2d0a9f2f32c95 -r75318f0d3808d8d3c02dbc333c80b6d6e07fae13 --- src/ch/TMsgBox.h (.../TMsgBox.h) (revision 096451721a732567aad7e103bfe2d0a9f2f32c95) +++ src/ch/TMsgBox.h (.../TMsgBox.h) (revision 75318f0d3808d8d3c02dbc333c80b6d6e07fae13) @@ -48,10 +48,22 @@ 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(); void OnFirstButtonClicked(); @@ -78,7 +90,11 @@ CString m_strCheckboxText; CRect m_rcRichEdit; + CRect m_rcDialogMinSize; + int m_iCheckBoxHeight; + bool m_bCheckboxChecked; + protected: DECLARE_MESSAGE_MAP() DECLARE_DYNAMIC(TMsgBox)