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

📄 wzdmenu.h

📁 《vc++扩展编程实例》源码。运用Visual C++ 5.0或6.0的高级编程技巧
💻 H
字号:
#if !defined(AFX_WZDMENU_H__18606914_D521_11D1_9B69_00AA003D8695__INCLUDED_)
#define AFX_WZDMENU_H__18606914_D521_11D1_9B69_00AA003D8695__INCLUDED_

#if _MSC_VER >= 1000
#pragma once
#endif // _MSC_VER >= 1000
// WzdMenu.h : header file
//
#include "afxtempl.h"

#define BUTTON_WIDTH 16
#define BUTTON_HEIGHT 15

struct MENUENTRY {
	CString str;
	UINT	id;
	UINT	chr;
	CSize	size;
	int		inx;
	};

/////////////////////////////////////////////////////////////////////////////
// CWzdMenu window

class CWzdMenu : public CMenu
{
// Construction
public:
	CWzdMenu();
	virtual ~CWzdMenu();

// Attributes
public:

// Operations
public:
	void CreatePopupEx(int nCmds,UINT *pMenuCmds);
	void InitMenu(CWnd *pWnd, CMenu *pMenu, UINT idb, CToolBar *pToolBar);
	void InitMenuPopup();
	void MeasureItem(LPMEASUREITEMSTRUCT lpMIS);
	void DrawItem(LPDRAWITEMSTRUCT lpDIS);
	LRESULT MenuChar(UINT nChar);

// Implementation
public:

private:
	CBitmap	m_bitmap;
	CList<MENUENTRY*,MENUENTRY*> m_FullMenuList;
	CList<MENUENTRY*,MENUENTRY*> m_CurrentMenuList;
};

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

//{{AFX_INSERT_LOCATION}}
// Microsoft Developer Studio will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_WZDMENU_H__18606914_D521_11D1_9B69_00AA003D8695__INCLUDED_)

⌨️ 快捷键说明

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