00001 #pragma once
00002
00003
00004
00005
00006
00007 #include "DLGBoxBase.h"
00008
00009
00010
00011 namespace jbxwl {
00012
00013
00015
00016
00017 class CMessageBoxDLG : public CDialog
00018 {
00019 public:
00020 CWnd* pWnd;
00021 UINT dialogID;
00022 CString title;
00023 CStatic* message;
00024 bool cancel;
00025
00026
00027 public:
00028 CMessageBoxDLG( LPCTSTR tn=NULL, CWnd* pParent=NULL);
00029 CMessageBoxDLG(UINT nIDTemplate, LPCTSTR tn=NULL, CWnd* pParent=NULL);
00030
00031 virtual ~CMessageBoxDLG();
00032
00033 BOOL OnInitDialog();
00034
00035 void Display(LPCTSTR mesg=NULL);
00036 void Destory(void);
00037 bool isCanceled() {return cancel;}
00038
00039
00040
00041 enum { IDD = IDD_MESG_BOX };
00042
00043
00044
00045 protected:
00046
00047 virtual void DoDataExchange(CDataExchange* pDX);
00048
00049
00050
00051 protected:
00052
00053
00054 DECLARE_MESSAGE_MAP()
00055 public:
00056 afx_msg void OnStnClickedMesgBoxText();
00057 virtual BOOL OnCommand(WPARAM wParam, LPARAM lParam);
00058 };
00059
00060
00061
00062
00063
00064
00066
00067
00068 CMessageBoxDLG* MessageBoxDLG(int ttl, int msg, CWnd* wnd=NULL);
00069 CMessageBoxDLG* MessageBoxDLG(LPCTSTR ttl, int msg, CWnd* wnd=NULL);
00070 CMessageBoxDLG* MessageBoxDLG(int ttl, LPCTSTR msg, CWnd* wnd=NULL);
00071 CMessageBoxDLG* MessageBoxDLG(LPCTSTR ttl, LPCTSTR msg, CWnd* wnd=NULL);
00072
00073
00074 int MessageBoxDLG(int ttl, int msg, UINT type, CWnd* wnd=NULL);
00075 int MessageBoxDLG(LPCTSTR ttl, int msg, UINT type, CWnd* wnd=NULL);
00076 int MessageBoxDLG(int ttl, LPCTSTR msg, UINT type, CWnd* wnd=NULL);
00077 int MessageBoxDLG(LPCTSTR ttl, LPCTSTR msg, UINT type, CWnd* wnd=NULL);
00078
00079
00080
00081
00082
00083
00084
00085
00086
00087
00088
00089
00090
00092
00093
00094 }