menuview.h

来自「偶作的毕业设计程序」· C头文件 代码 · 共 84 行

H
84
字号
#if !defined(AFX_MENUVIEW_H__3E6B7247_77EE_4B7D_8AD9_BCF57D691901__INCLUDED_)
#define AFX_MENUVIEW_H__3E6B7247_77EE_4B7D_8AD9_BCF57D691901__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// MenuView.h : header file
//

/////////////////////////////////////////////////////////////////////////////
// CMenuView view

class CMenuView : public CScrollView
{
protected:
	CMenuView();           // protected constructor used by dynamic creation
	DECLARE_DYNCREATE(CMenuView)

// Attributes
public:

// Operations
public:
	void NoCmdLogProcess(CDC *pDC, INT nType);
	void ShowParaSetDlg();
	TEXTMETRIC m_tm;
	CFont *m_pNewFont;
	CFont *m_pOldFont;
	CString m_strCmdLogTxtTempFileName;
	ULONG m_nXLogPixPerInchScr;
	ULONG m_nYLogPixPerInchScr;
	ULONG m_nXLogPixPerInchPrn;
	ULONG m_nYLogPixPerInchPrn;
	ULONG m_PageWidth;
	ULONG m_PageHeight;

	void SetRange(INT nsizeTotalCx, INT nsizeTotalCy, INT nsizePageCy, INT nsizeLineCy);
	BOOL m_bMenu; //是否选择了菜单日志记录
	CString m_strMenuLogTempFileName;

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CMenuView)	
	public:
	virtual void OnInitialUpdate();
	virtual void OnPrepareDC(CDC* pDC, CPrintInfo* pInfo = NULL);
	protected:
	virtual void OnDraw(CDC* pDC);      // overridden to draw this view
	virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
	virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
	virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
	virtual void OnPrint(CDC* pDC, CPrintInfo* pInfo);
	//}}AFX_VIRTUAL

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

	// Generated message map functions
protected:
	//{{AFX_MSG(CMenuView)
	afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
	afx_msg void OnContextMenu(CWnd* pWnd, CPoint point);
	afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
private:
	BOOL m_bPrintContinue;
	INT m_nCurPageCount;
	INT m_nScreenHighPerLine;	//显示行高
	INT m_nPrintHightPerLine;	//打印行高
};

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

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

#endif // !defined(AFX_MENUVIEW_H__3E6B7247_77EE_4B7D_8AD9_BCF57D691901__INCLUDED_)

⌨️ 快捷键说明

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