#pragma once #ifndef __AFXWIN_H__ #error include 'stdafx
h' before including this file for PCH #endif #include "resource
h"// 主符号 // CgetinfoApp: // 有关此类的实现,请参阅 getinfo
cpp // class CgetinfoApp : public CWinApp { public: CgetinfoApp(); // 重写 public: virtual BOOL InitInstance(); // 实现 DECLARE_MESSAGE_MAP() }; extern CgetinfoApp theApp; // getinfoDlg
h : 头文件 // #pragma once // CgetinfoDlg 对话框 class CgetinfoDlg : public CDialog { // 构造 public: CgetinfoDlg(CWnd* pParent = NULL);// 标准构造函数 // 对话框数据 enum { IDD = IDD_GETINFO_DIALOG }; protected: virtual void DoDataExchange(CDataExchange* pDX);// DDX/DDV 支持 // 实现 protected: HICON m_hIcon; // 生成的消息映射函数 virtual BOOL OnInitDialog(); afx_msg void OnSysCommand(UINT nID, LPARAM lParam); afx_msg void OnPaint(); afx_msg HCURSOR OnQueryDragIcon();