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

📄 mainfrm.h

📁 《数字图象工程案例》原码
💻 H
字号:
// MainFrm.h : interface of the CMainFrame class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_MAINFRM_H__57ECEFCD_C909_11D2_83AE_5254AB1C48FD__INCLUDED_)
#define AFX_MAINFRM_H__57ECEFCD_C909_11D2_83AE_5254AB1C48FD__INCLUDED_

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

#include "PaintToolbar.h"
#include "PaintParambar.h"

#define PANE_LENGTH_UNIT		1
#define PANE_CURSOR_POSITION	2
#define PANE_IMAGE_SIZE			3
#define PANE_BIT_COUNT			4



class CMainFrame : public CMDIFrameWnd
{
	DECLARE_DYNAMIC(CMainFrame)
public:
	CMainFrame();

// Attributes
public:
	CStatusBar  m_wndStatusBar;
	CToolBar    m_wndToolBar;
	CToolBar    m_wndTextToolBar;
	CPaintToolbar  m_wndPaintToolBar;
	CPaintParambar m_wndPaintParamBar;
	CToolBar m_wndViewToolBar;
//////////////////////////////////////////////////////////////////////////////////////////////////
///////////////////added by ljh:start////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////

BOOL  m_wndStatusBarVisible;
BOOL  m_wndToolBarVisible;
BOOL  m_wndTextToolBarVisible;
BOOL  m_wndPaintToolBarVisible;
BOOL  m_wndPaintParamBarVisible;
BOOL  m_wndViewToolBarVisible;

BOOL b_wndPaintParamBarCreat;
private:
	BOOL m_bFullScreen; //全屏幕显示标志 
CRect m_FullScreenWindowRect; //全屏幕显示窗口Rect 
WINDOWPLACEMENT m_wpPrev; //用于保存正常视图时的窗口位置信息 
CToolBar * m_wndFullScreenBar; //全屏幕显示时的浮动工具条 



//////////////////////////////////////////////////////////////////////////////////////////////////
///////////////////added by ljh:END////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////

// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CMainFrame)
	public:
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
	virtual void WinHelp(DWORD dwData, UINT nCmd = HELP_CONTEXT);
	//}}AFX_VIRTUAL

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

protected:  // control bar embedded members

// Generated message map functions
protected:
	//{{AFX_MSG(CMainFrame)
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	afx_msg void OnPaletteChanged(CWnd* pFocusWnd);
	afx_msg BOOL OnQueryNewPalette();
	afx_msg void OnFullscreen();
	afx_msg void OnUpdateFullscreen(CCmdUI* pCmdUI);
	afx_msg void OnGetMinMaxInfo(MINMAXINFO FAR* lpMMI);
	afx_msg void OnPainttool();
	afx_msg void OnUpdatePainttool(CCmdUI* pCmdUI);
	afx_msg void OnPaintparam();
	afx_msg void OnUpdatePaintparam(CCmdUI* pCmdUI);
	afx_msg void OnTexttool();
	afx_msg void OnUpdateTexttool(CCmdUI* pCmdUI);
	afx_msg void OnViewtool();
	afx_msg void OnUpdateViewtool(CCmdUI* pCmdUI);
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

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

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

#endif // !defined(AFX_MAINFRM_H__57ECEFCD_C909_11D2_83AE_5254AB1C48FD__INCLUDED_)

⌨️ 快捷键说明

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