COOLMENU.H
上传用户:lianyisd
上传日期:2019-11-03
资源大小:5188k
文件大小:1k
- // 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_)