www.pudn.com > GGBT.rar > DlgAfxMessage.h
#if !defined(AFX_DLGAFXMESSAGE_H__014B8BF2_0A33_4C5C_858A_426C0F80CE09__INCLUDED_)
#define AFX_DLGAFXMESSAGE_H__014B8BF2_0A33_4C5C_858A_426C0F80CE09__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// DlgAfxMessage.h : header file
//
#include "ButtonEx.h"
/////////////////////////////////////////////////////////////////////////////
// CDlgAfxMessage dialog
class CDlgAfxMessage : public CDialog
{
// Construction
public:
CDlgAfxMessage(LPCTSTR lpszText, UINT nType, CWnd* pParent = NULL); // standard constructor
// Dialog Data
//{{AFX_DATA(CDlgAfxMessage)
enum { IDD = IDD_DIALOG_AFX_MESSAGE };
CButtonEx m_btnNo;
CButtonEx m_btnCancel;
CButtonEx m_btnOK;
//}}AFX_DATA
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CDlgAfxMessage)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
// Generated message map functions
//{{AFX_MSG(CDlgAfxMessage)
virtual BOOL OnInitDialog();
virtual void OnOK();
afx_msg void OnPaint();
virtual void OnCancel();
afx_msg void OnNo();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
private:
void DrawTheIcon(CDC* pDC, RECT* rcItem);
CFont m_font;
long m_cxIcon;
long m_cyIcon;
HICON m_hIcon;
CImageList m_ctlImage;
CString m_strText;
UINT m_nType;
CRect m_rcText;
CRect m_rcImage;
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_DLGAFXMESSAGE_H__014B8BF2_0A33_4C5C_858A_426C0F80CE09__INCLUDED_)