?? setmap.h
字號:
#if !defined(AFX_SETMAP_H__B4CBE1F9_2C43_4D31_BE90_5326C549864C__INCLUDED_)
#define AFX_SETMAP_H__B4CBE1F9_2C43_4D31_BE90_5326C549864C__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// SetMap.h : header file
//
/////////////////////////////////////////////////////////////////////////////
// CSetMap dialog
class CSetMap : public CDialog
{
// Construction
public:
void ResetAll();
int GetPoint(POINT p);
CSetMap(CWnd* pParent = NULL); // standard constructor
BOOL bSetPoint,bSetDistance;
COLORREF curColor;
POINT points[100];
double distances[100][100];
int point_nums;
int line_nums;
RECT mapRect;
bool line_start;
BOOL bmodify_distance;
int startp,endp;
CRect map;
BOOL bclear_point,bclear_line;
// Dialog Data
//{{AFX_DATA(CSetMap)
enum { IDD = IDD_DIALOG1 };
CButton m_clear_line;
CButton m_clear_point;
CButton m_modify_distance;
CButton m_input_point;
//}}AFX_DATA
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CSetMap)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
// Generated message map functions
//{{AFX_MSG(CSetMap)
afx_msg void OnOkk();
afx_msg void OnCancell();
afx_msg void OnMouseMove(UINT nFlags, CPoint point);
afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
afx_msg void OnInputPoint();
afx_msg void OnInputDistance();
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
virtual BOOL OnInitDialog();
afx_msg void OnPaint();
afx_msg void OnModifyDistance();
afx_msg void OnClearPoint();
afx_msg void OnClearLine();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_SETMAP_H__B4CBE1F9_2C43_4D31_BE90_5326C549864C__INCLUDED_)
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -