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

📄 coolmenu.h

📁 趣味编程媒体播~1.rar
💻 H
字号:
// CoolMenu.h: interface for the CCoolMenu class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_COOLMENU_H__78697244_624C_11D4_B5A9_00105A74D1DF__INCLUDED_)
#define AFX_COOLMENU_H__78697244_624C_11D4_B5A9_00105A74D1DF__INCLUDED_

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

#include "MenuItemList.h"

class CCoolMenu : public CMenu  
{
public:
	CCoolMenu();
    virtual ~CCoolMenu();
	void  MeasureItem(LPMEASUREITEMSTRUCT  lpDrawItemStruct);
    void  DrawItem( LPDRAWITEMSTRUCT lpDrawItemStruct);
    void  AppendCoolMenu(UINT nID, CString pTxt , int nImageID=-1);
    void  DrawGradient(CDCHandle * pDC, CRect * pRect , COLORREF clrStart , 
								     COLORREF clrEnd,BOOL bVertice /*=FALSE */);
	void  SetBackImage(UINT nID,int cx,int row);
    void  SetImage(UINT nID, int cx, int row);

protected:

private:
	int    m_iMenuWidth;    //菜单宽度
	int    m_iMenuHeight;   //菜单高度

	int    m_iBackImageWidth;  //背景图象的宽度
	int    m_iBackImageHeight; //背景图象的高度
	int    m_nIconSize;

	int    m_iImageWidth;      //图象的宽度
	int    m_iImageHeight;     //图象的宽度
    COLORREF m_clrMenuEnd   , m_clrBarEnd ;
	COLORREF m_clrMenuStart , m_clrBarStart;
	
	CMenuItemList  m_MenuItemList;

	CImageList  m_ImageList;
	int      m_iItemNum;
	int      m_iUpHeight;


BEGIN_MSG_MAP(CCoolMenu)
END_MSG_MAP()

};

#endif // !defined(AFX_COOLMENU_H__78697244_624C_11D4_B5A9_00105A74D1DF__INCLUDED_)

⌨️ 快捷键说明

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