1 #pragma once 2 #include "afxcmn.h" 3 #include "afxwin.h" 4 5 6 #ifndef _MESSAGE_DIALOG_ 7 #define _MESSAGE_DIALOG_ 8 9 class message_dialog : public express_dialog 10 { 11 DECLARE_DYNAMIC(message_dialog) 12 public: 13 message_dialog(const char *caption, const char *msg, bool type, CWnd *pParent); 14 virtual ~message_dialog(); 15 16 void AddCStaticControl(CString text = _T("This is a Static.")); 17 18 enum { IDD = IDD_MESSAGE_DLG}; 19 20 protected: 21 CStatic msg_text; 22 CString mMessage; 23 unsigned int m_type; 24 BOOL yesandno; 25 26 private: 27 28 DECLARE_MESSAGE_MAP() 29 public: 30 virtual BOOL OnInitDialog(); 31 afx_msg LRESULT OnTestMessage(WPARAM, LPARAM); 32 }; 33 34 #endif