这是一本学习 window编程的很好的参考教材
源代码在线查看: ginatestdlg.h
// ginatestDlg.h : header file
//
#if !defined(AFX_GINATESTDLG_H__96563086_CF5D_11D6_92BC_0050BAF080E4__INCLUDED_)
#define AFX_GINATESTDLG_H__96563086_CF5D_11D6_92BC_0050BAF080E4__INCLUDED_
#if _MSC_VER >= 1000
#pragma once
#endif // _MSC_VER >= 1000
/////////////////////////////////////////////////////////////////////////////
// CginatestDlg dialog
class CginatestDlg : public CDialog
{
// Construction
public:
CginatestDlg(CWnd* pParent = NULL); // standard constructor
// Dialog Data
//{{AFX_DATA(CginatestDlg)
enum { IDD = IDD_GINATEST_DIALOG };
// NOTE: the ClassWizard will add data members here
//}}AFX_DATA
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CginatestDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
HICON m_hIcon;
// Generated message map functions
//{{AFX_MSG(CginatestDlg)
virtual BOOL OnInitDialog();
afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
virtual void OnOK();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Developer Studio will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_GINATESTDLG_H__96563086_CF5D_11D6_92BC_0050BAF080E4__INCLUDED_)