?? dlgpointstre.h
字號(hào):
#if !defined(AFX_DLGPOINTSTRE_H__45B95585_372F_4C49_8928_99D343D2DE00__INCLUDED_)#define AFX_DLGPOINTSTRE_H__45B95585_372F_4C49_8928_99D343D2DE00__INCLUDED_#if _MSC_VER > 1000#pragma once#endif // _MSC_VER > 1000// DlgPointStre.h : header file///////////////////////////////////////////////////////////////////////////////// CDlgPointStre dialogclass CDlgPointStre : public CDialog{// Constructionpublic: // 當(dāng)前鼠標(biāo)拖動(dòng)狀態(tài),0表示未拖動(dòng),1表示正在拖動(dòng)第一點(diǎn),2表示正在拖動(dòng)第二點(diǎn)。 int m_iIsDraging; // 相應(yīng)鼠標(biāo)事件的矩形區(qū)域 CRect m_MouseRect; // 標(biāo)識(shí)是否已經(jīng)繪制橡皮筋線 BOOL m_bDrawed; // 保存鼠標(biāo)左鍵單擊時(shí)的位置 CPoint m_p1; // 保存鼠標(biāo)拖動(dòng)時(shí)的位置 CPoint m_p2; CDlgPointStre(CWnd* pParent = NULL); // standard constructor// Dialog Data //{{AFX_DATA(CDlgPointStre) enum { IDD = IDD_DLG_PointStre }; // 兩個(gè)轉(zhuǎn)折點(diǎn)坐標(biāo) BYTE m_bX1; BYTE m_bY1; BYTE m_bX2; BYTE m_bY2; //}}AFX_DATA// Overrides // ClassWizard generated virtual function overrides //{{AFX_VIRTUAL(CDlgPointStre) protected: virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support //}}AFX_VIRTUAL// Implementationprotected: // Generated message map functions //{{AFX_MSG(CDlgPointStre) virtual BOOL OnInitDialog(); afx_msg void OnLButtonDown(UINT nFlags, CPoint point); afx_msg void OnMouseMove(UINT nFlags, CPoint point); afx_msg void OnLButtonUp(UINT nFlags, CPoint point); afx_msg void OnPaint(); afx_msg void OnKillfocusEditX1(); afx_msg void OnKillfocusEditX2(); afx_msg void OnKillfocusEditY1(); afx_msg void OnKillfocusEditY2(); virtual void OnOK(); //}}AFX_MSG DECLARE_MESSAGE_MAP()};//{{AFX_INSERT_LOCATION}}// Microsoft Visual C++ will insert additional declarations immediately before the previous line.#endif // !defined(AFX_DLGPOINTSTRE_H__45B95585_372F_4C49_8928_99D343D2DE00__INCLUDED_)
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -