Operator Console
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Types | Public Member Functions | Public Attributes | Protected Member Functions | List of all members
MsgDialog Class Reference

#include <MsgDialog.h>

Inheritance diagram for MsgDialog:
[legend]

Public Types

enum  { IDD = IDD_MSGDIALOG }
 

Public Member Functions

 MsgDialog (LPCTSTR msg, CWnd *pParent=NULL)
 
virtual ~MsgDialog ()
 
afx_msg void OnClose ()
 
afx_msg void OnDrawItem (int nIDCtl, LPDRAWITEMSTRUCT lpDrawItemStruct)
 

Public Attributes

CStatic c_icon
 
CEdit c_msg
 
CString m_msg
 

Protected Member Functions

virtual void DoDataExchange (CDataExchange *pDX)
 
BOOL OnInitDialog ()
 

Member Enumeration Documentation

anonymous enum
Enumerator
IDD 
16 { IDD = IDD_MSGDIALOG };
#define IDD_MSGDIALOG
Definition: resource.h:29
Definition: MsgDialog.h:16

Constructor & Destructor Documentation

MsgDialog::MsgDialog ( LPCTSTR  msg,
CWnd *  pParent = NULL 
)
15  : CDialogEx(MsgDialog::IDD, pParent)
16 {
17  m_msg = msg;
18 }
CString m_msg
Definition: MsgDialog.h:28
Definition: MsgDialog.h:16
MsgDialog::~MsgDialog ( )
virtual
21 {
22 }

Member Function Documentation

void MsgDialog::DoDataExchange ( CDataExchange *  pDX)
protectedvirtual

References c_icon, c_msg, and IDC_MSG.

25 {
26  CDialogEx::DoDataExchange(pDX);
27  DDX_Control(pDX, IDC_MSG, c_msg);
28  DDX_Control(pDX, IDC_ICON, c_icon);
29 }
CStatic c_icon
Definition: MsgDialog.h:26
#define IDC_MSG
Definition: resource.h:54
CEdit c_msg
Definition: MsgDialog.h:27
void MsgDialog::OnClose ( )
59 {
60  // TODO: Add your message handler code here and/or call default
61 
62  CDialogEx::OnClose();
63 }
void MsgDialog::OnDrawItem ( int  nIDCtl,
LPDRAWITEMSTRUCT  lpDrawItemStruct 
)
67 {
68  // TODO: Add your message handler code here and/or call default
69 
70  CDialogEx::OnDrawItem(nIDCtl, lpDrawItemStruct);
71 }
BOOL MsgDialog::OnInitDialog ( )
protected

References theApp.

41 {
42  CDialogEx::OnInitDialog();
43 
44  HICON hicon = theApp.LoadStandardIcon(IDI_ASTERISK);
45 
46  c_icon.SetIcon(hicon);
47  c_msg.SetWindowText(m_msg);
48  ShowWindow(SW_NORMAL);//SW_MAXIMIZE);
49 
50  // TODO: Add extra initialization here
51 
52 
53 
54  return TRUE; // return TRUE unless you set the focus to a control
55 }
CStatic c_icon
Definition: MsgDialog.h:26
CString m_msg
Definition: MsgDialog.h:28
AppThread theApp
Definition: AppThread.cpp:36
CEdit c_msg
Definition: MsgDialog.h:27

Member Data Documentation

CStatic MsgDialog::c_icon

Referenced by DoDataExchange().

CEdit MsgDialog::c_msg

Referenced by DoDataExchange().

CString MsgDialog::m_msg

The documentation for this class was generated from the following files: