00001 #ifndef __MESSAGEDLG_H__
00002 #define __MESSAGEDLG_H__
00003
00004 #if _MSC_VER > 1000
00005 #pragma once
00006 #endif // _MSC_VER > 1000
00007
00017 class MessageDlg : public CDialog
00018 {
00019 private:
00021 enum {
00022 TIME_FOR_REPLY_TIMER = 4
00023 };
00024 public:
00026 MessageDlg(CWnd* pParent, UINT32 destination);
00027
00029 MessageDlg(CWnd* pParent, RefCountBuffer msg, UINT32 msg_id, time_t time_to_reply);
00030
00032 MessageDlg(CWnd* pParent, RefCountBuffer reply);
00033
00034
00035
00036 enum { IDD = IDD_MESSAGE };
00037 CString m_Message;
00038 CString m_Reply;
00039
00040
00041
00042
00043
00044
00045 public:
00046 virtual BOOL Create();
00047 protected:
00048 virtual void DoDataExchange(CDataExchange* pDX);
00049 virtual void PostNcDestroy();
00050
00051
00052
00053 protected:
00054
00055
00056
00057 virtual BOOL OnInitDialog();
00058 virtual void OnOK();
00059 afx_msg void OnTimer(UINT nIDEvent);
00060
00061 DECLARE_MESSAGE_MAP()
00062
00063 private:
00064 CWnd *m_pParent;
00065 UINT32 m_Destination;
00066 UINT32 m_MsgID;
00067 MESSAGE_TYPE m_MessageType;
00068 CString m_Caption;
00069 time_t m_TimeToReply;
00070 };
00071
00072
00073
00074 #endif // __MESSAGEDLG_H__