toolmenu.h
来自「用VC写的浏览器」· C头文件 代码 · 共 39 行
H
39 行
#if !defined(AFX_TOOLMENU_H__E8777520_DE4C_11D3_84C7_0080450EA020__INCLUDED_)
#define AFX_TOOLMENU_H__E8777520_DE4C_11D3_84C7_0080450EA020__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
/////////////////////////////////////////////////////////////////////////////
/*
This is our custom owner drawn menu that shows the hidden tool bar buttons
with optional text
*/
BOOL DestroyMenuData(HMENU hMenu=NULL,int nStart=0);
BOOL DestroyMenuItemData(HMENU hMenu,int nPos, BOOL bPos);
BOOL DestroySubMenu(HMENU hMenu,HMENU hSubMenu);
class CToolMenu : public CMenu
{
public:
CToolMenu();
// The toolbar from which the bitmaps/icons have to be extracted
CImageList * m_pImg;
// Overridables
virtual void DrawItem(LPDRAWITEMSTRUCT lpDrawItemStruct);
virtual void MeasureItem(LPMEASUREITEMSTRUCT lpMeasureItemStruct);
public:
BOOL DestroyMenu();
virtual ~CToolMenu();
};
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
#endif // !defined(AFX_TOOLMENU_H__E8777520_DE4C_11D3_84C7_0080450EA020__INCLUDED_)
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?