📄 cad.h
字号:
// Cad.h : main header file for the CAD application
//
#if !defined(AFX_CAD_H__12E57A07_ADD2_11CF_BF57_B29AF85F4C3B__INCLUDED_)
#define AFX_CAD_H__12E57A07_ADD2_11CF_BF57_B29AF85F4C3B__INCLUDED_
#if _MSC_VER >= 1000
#pragma once
#endif // _MSC_VER >= 1000
#ifndef __AFXWIN_H__
#error include 'stdafx.h' before including this file for PCH
#endif
#include "resource.h" // main symbols
//记录主任务和辅助任务
extern UINT g_nCurTask;
extern UINT g_nStep;
extern UINT g_nOpqTask;
extern UINT g_nOpqStep;
//记录对象捕捉
extern BOOL g_bOSnapped;
//记录当前颜色和线性
extern UINT g_nCurColor;
extern UINT g_nCurLineType;
//记录当前鼠标状态
extern UINT g_nFlags;
extern double g_dCurX;
extern double g_dCurY;
extern double g_dPreX;
extern double g_dPreY;
extern double g_dOrgX;
extern double g_dOrgY;
//记录GRID,ORTHO,SNAP状态
extern BOOL g_bGrid;
extern BOOL g_bOrtho;
extern BOOL g_bSnap;
//记录Grid大小和Snap大小
extern double g_dGrid;
extern double g_dSnap;
//记录对象捕捉类型和屏幕象素点距离
extern int g_nOSnapType;
extern int g_nOSnapSize;
//记录当前图形所在区域
extern double g_dMaxX;
extern double g_dMaxY;
extern double g_dMinX;
extern double g_dMinY;
//记录当前活动视指针
extern class CCadView* g_pCurView;
/////////////////////////////////////////////////////////////////////////////
// CCadApp:
// See Cad.cpp for the implementation of this class
//
class CCadApp : public CWinApp
{
public:
virtual BOOL PreTranslateMessage(MSG* pMsg);
CCadApp();
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CCadApp)
public:
virtual BOOL InitInstance();
//}}AFX_VIRTUAL
// Implementation
//{{AFX_MSG(CCadApp)
afx_msg void OnAppAbout();
// NOTE - the ClassWizard will add and remove member functions here.
// DO NOT EDIT what you see in these blocks of generated code !
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Developer Studio will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_CAD_H__12E57A07_ADD2_11CF_BF57_B29AF85F4C3B__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -