pointinfo.h
来自「Visual C++_ 600 编程学习捷径」· C头文件 代码 · 共 55 行
H
55 行
#if !defined(AFX_POINTINFO_H__1A3CA0C6_18A6_4937_A6C7_1504425CFBA7__INCLUDED_)
#define AFX_POINTINFO_H__1A3CA0C6_18A6_4937_A6C7_1504425CFBA7__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// PointInfo.h : header file
//
/////////////////////////////////////////////////////////////////////////////
// CPointInfo dialog
#define WM_ADD_POINT (WM_USER + 100) //父窗口向CPointInfo对象发送添加点消息
#define WM_DELETE_POINT (WM_USER + 101) //CPointInfo对象向父窗口发送删除点消息
#define WM_MOUSE_CHANGED (WM_USER + 102) //父窗口向CPointInfo对象发送鼠标位置改变消息
class CPointInfo : public CDialog
{
// Construction
public:
CPointInfo(CWnd* pParent = NULL); // standard constructor
// Dialog Data
//{{AFX_DATA(CPointInfo)
enum { IDD = IDD_MOUSE_POINT_DIALOG };
CListBox m_List;
CString m_strMouseX;
CString m_strMouseY;
//}}AFX_DATA
CWnd * m_pParentWnd;
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CPointInfo)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
// Generated message map functions
//{{AFX_MSG(CPointInfo)
afx_msg void OnDelete();
afx_msg void OnClose();
afx_msg void OnAddPoint(WPARAM wParam, LPARAM lParam);
afx_msg void OnMouseChanged(WPARAM wParam, LPARAM lParam);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_POINTINFO_H__1A3CA0C6_18A6_4937_A6C7_1504425CFBA7__INCLUDED_)
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?