MFCApplication1Dlg.h 863 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. 
  2. // MFCApplication1Dlg.h: 头文件
  3. //
  4. #pragma once
  5. #define WM_SHOWINFO (WM_USER+0x1)
  6. // CMFCApplication1Dlg 对话框
  7. class CMFCApplication1Dlg : public CDialogEx
  8. {
  9. // 构造
  10. public:
  11. CMFCApplication1Dlg(CWnd* pParent = nullptr); // 标准构造函数
  12. // 对话框数据
  13. #ifdef AFX_DESIGN_TIME
  14. enum { IDD = IDD_MFCAPPLICATION1_DIALOG };
  15. #endif
  16. protected:
  17. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV 支持
  18. // 实现
  19. protected:
  20. HICON m_hIcon;
  21. // 生成的消息映射函数
  22. virtual BOOL OnInitDialog();
  23. afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
  24. afx_msg void OnPaint();
  25. afx_msg HCURSOR OnQueryDragIcon();
  26. afx_msg LRESULT OnShowInfo(WPARAM wParam, LPARAM lParam);
  27. DECLARE_MESSAGE_MAP()
  28. public:
  29. afx_msg void OnBnClickedOk();
  30. CString m_strMsg;
  31. void UpdateMsg(CString strMsg);
  32. afx_msg void OnBnClickedCancel();
  33. };