📄 drawvw.h
字号:
#if !defined(AFX_DRAWVW_H__97FEDA1B_01B3_48D5_B4D4_65E5F96EAEAC__INCLUDED_)
#define AFX_DRAWVW_H__97FEDA1B_01B3_48D5_B4D4_65E5F96EAEAC__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// DrawVw.h : header file
//
/////////////////////////////////////////////////////////////////////////////
// CDrawVw form view
#ifndef __AFXEXT_H__
#include <afxext.h>
#endif
#include "screendoc.h"
#include "stagemeng.h"
#include "word.h"
class CDrawVw : public CFormView
{
protected:
CDrawVw(); // protected constructor used by dynamic creation
DECLARE_DYNCREATE(CDrawVw)
CDC pMemDC;
CScreenDoc* pDoc;
BOOL bFirstShow;
// Form Data
public:
//{{AFX_DATA(CDrawVw)
enum { IDD = IDD_DRAW_DIALOG };
//}}AFX_DATA
// CScreenDoc* pDoc;
// Attributes
public:
// CStagementObj* pCurStagementObj;
CPoint m_OrgPt;
CPoint m_MovPt;
int m_MouseFlag;
// int orgx,orgy;
// int pixperunit;
// double step;
// double scale;
// Operations
public:
void FirstCalc();
void CalcLayout();
double prescale;
void ZoomIn();
void ZoomOut();
void CalcParameter();
CScreenDoc* GetDocument();
void DrawGraph(CDC *pMemDC,int mode);
void DrawDz(CDC *pMemDC, CWordObj *pWordObj, COLORREF color,int mode);
BOOL IsInWordRect(CDC* pDC,CPoint point, CObList *pObList, POSITION *pCurPos, BOOL *pIsSel);
void DrawScreen();
void DrawGrid(CDC* tpDC);
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CDrawVw)
public:
virtual BOOL OnScroll(UINT nScrollCode, UINT nPos, BOOL bDoScroll = TRUE);
virtual BOOL PreTranslateMessage(MSG* pMsg);
virtual void OnInitialUpdate();
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
virtual void OnDraw(CDC* pDC);
//}}AFX_VIRTUAL
// Implementation
protected:
virtual ~CDrawVw();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
// Generated message map functions
//{{AFX_MSG(CDrawVw)
afx_msg void OnOK();
afx_msg void OnSize(UINT nType, int cx, int cy);
afx_msg void OnButton1();
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 OnButton2();
afx_msg void OnButton3();
afx_msg void OnRButtonDown(UINT nFlags, CPoint point);
afx_msg void OnButton4();
afx_msg void OnChar(UINT nChar, UINT nRepCnt, UINT nFlags);
afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
afx_msg void OnVScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
afx_msg void OnHScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
afx_msg BOOL OnEraseBkgnd(CDC* pDC);
afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
#ifndef _DEBUG // debug version in ScreenView.cpp
inline CScreenDoc* CDrawVw::GetDocument()
{ return (CScreenDoc*)m_pDocument; }
#endif
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_DRAWVW_H__97FEDA1B_01B3_48D5_B4D4_65E5F96EAEAC__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -