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

📄 winappex.h

📁 VC开发实用实例
💻 H
字号:
#if !defined(AFX_WINAPPEX_H__E07A7383_E1AE_11D2_B891_0048540133F7__INCLUDED_)
#define AFX_WINAPPEX_H__E07A7383_E1AE_11D2_B891_0048540133F7__INCLUDED_

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

//类名:CWinAppEx
//功能:替换应用类,显示Office2000菜单风格
//修改人:徐景周(jingzhou_xu@163.net)
//组织:未来工作室(Future Studio)
//日期:2001.12.1
////////////////////////////////////////////////////////////////////////////
// CWinAppEx thread

class CMenuEx;

class CWinAppEx : public CWinApp
{
	DECLARE_DYNCREATE(CWinAppEx)
protected:
	CWinAppEx();           // protected constructor used by dynamic creation
	BOOL m_bDrawGrayed;

// Attributes
public:
	LPCTSTR m_lpWndClass;

// Operations
public:
	CMenuEx* SetupMenu(CMenuEx * pTopMenu, const char * section);
	CMenuEx* SaveMenuChanges(CMenuEx * pTopMenu, const char * section);
	BOOL CheckForGrayedMenuPaint(){return m_bDrawGrayed;}
	void AdjustToolBars();
	void OnMenuSilent();
	int GetMenuParameter(){return m_iMenuParameter;};
	void SetMenuParameter(int i){m_iMenuParameter=i;};

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CWinAppEx)
	public:
	virtual BOOL InitInstance();
	virtual int ExitInstance();
	//}}AFX_VIRTUAL

// Implementation
protected:
	virtual ~CWinAppEx();

	// Generated message map functions
	//{{AFX_MSG(CWinAppEx)
	afx_msg void OnMenuSetup();
	afx_msg void OnShowfull();
	afx_msg void OnUpdateRecentFileMenu(CCmdUI* pCmdUI);
	//}}AFX_MSG

	DECLARE_MESSAGE_MAP()
private:
	int m_iMenuParameter;
	void SetToolBar(CToolBar &ToolBar, UINT id , const char* section);
};

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

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

#endif // !defined(AFX_WINAPPEX_H__E07A7383_E1AE_11D2_B891_0048540133F7__INCLUDED_)

⌨️ 快捷键说明

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