⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 cformeditorview.h

📁 FormEditor,模拟Visual Basic窗口编辑界面
💻 H
字号:
// CFormEditorView.h : interface of the CCFormEditorView class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_CFORMEDITORVIEW_H__DBD32AF5_6BFC_443B_8430_0391D753E0EC__INCLUDED_)
#define AFX_CFORMEDITORVIEW_H__DBD32AF5_6BFC_443B_8430_0391D753E0EC__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

class CFormEditorRulerBar;
class CCFormEditorView : public CView
{
protected: // create from serialization only
	CCFormEditorView();
	DECLARE_DYNCREATE(CCFormEditorView)

// Attributes
public:
	CCFormEditorDoc* GetDocument();
	CSize m_sizeDropArea;
	CSize m_sizeGridStep;
	CRect m_rcLastDropArea;
	static void stat_PaintGradientRect(
		CDC & dc,
		const CRect & rcPaintGradient,
		COLORREF clrLeft,
		COLORREF clrRight,
		bool bHorz = false,
		UINT nCountOfSteps = 256
		);
	bool m_bTabOrderMode:1;
	bool m_bTrackingCreation:1;
	CRect m_rcTrackingCreation;
	CMap < HWND, HWND, int, int > m_mapSelection;
// Operations
public:
		static void CalcGripBoxes(
		CRect rcSrc,
		CRect * pRcOut
		);
    CSize CalcActualViewSize( CDC * pDC = NULL );
	CRect CalcActualViewRect( CDC * pDC = NULL );
	static int g_nGripBoxMetric;
	CString GetTabText( int nTabNo );
	CRect CalcTabNoRect( HWND hWndChild, int nTabNo, bool bLogicDcMode );
	static int stat_GetBPP();
// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CCFormEditorView)
	public:	
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
	virtual void OnDraw(CDC* pDC);  // overridden to draw this view
	protected:
	virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
	virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
	virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
	//}}AFX_VIRTUAL

// Implementation
public:
	virtual ~CCFormEditorView();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:
   void ExcludeControlAreas( HDC hDC );
	CFormEditorRulerBar * GetRuler( bool bHorz );
	const CFormEditorRulerBar * GetRuler( bool bHorz ) const;
	void RedrawRuler( bool bHorz, bool bUpdateNow = true );
// Generated message map functions
protected:
	//{{AFX_MSG(CCFormEditorView)
	afx_msg void OnOption();
	//}}AFX_MSG
	afx_msg LRESULT OnDrawRuler(WPARAM wParam, LPARAM lParam);
	DECLARE_MESSAGE_MAP()
};

#ifndef _DEBUG  // debug version in CFormEditorView.cpp
inline CCFormEditorDoc* CCFormEditorView::GetDocument()
   { return (CCFormEditorDoc*)m_pDocument; }
#endif
#define __FORM_EDITOR_VIEW_CLASS_NAME _T("ProfUIS-FormEditor-View")

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_CFORMEDITORVIEW_H__DBD32AF5_6BFC_443B_8430_0391D753E0EC__INCLUDED_)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -