- Visual C++源码
- Visual Basic源码
- C++ Builder源码
- Java源码
- Delphi源码
- C/C++源码
- PHP源码
- Perl源码
- Python源码
- Asm源码
- Pascal源码
- Borland C++源码
- Others源码
- SQL源码
- VBScript源码
- JavaScript源码
- ASP/ASPX源码
- C#源码
- Flash/ActionScript源码
- matlab源码
- PowerBuilder源码
- LabView源码
- Flex源码
- MathCAD源码
- VBA源码
- IDL源码
- Lisp/Scheme源码
- VHDL源码
- Objective-C源码
- Fortran源码
- tcl/tk源码
- QT源码
GfxPopupMenu.h
资源名称:eDraw2 [点击查看]
上传用户:fjzzwyy
上传日期:2007-01-14
资源大小:244k
文件大小:2k
源码类别:
绘图程序
开发平台:
Visual C++
- // GfxPopupMenu.h: interface for the CGfxPopupMenu class.
- //
- //////////////////////////////////////////////////////////////////////
- #if !defined(AFX_GFXPOPUPMENU_H__F2CEE8B2_014D_11D2_83E4_0000B43382FE__INCLUDED_)
- #define AFX_GFXPOPUPMENU_H__F2CEE8B2_014D_11D2_83E4_0000B43382FE__INCLUDED_
- #if _MSC_VER >= 1000
- #pragma once
- #endif // _MSC_VER >= 1000
- class CGfxPopupMenu : public CMenu
- {
- public:
- struct ToolBarData
- { // struct for toolbar resource; guess you already know it ;)
- WORD wVersion;
- WORD wWidth;
- WORD wHeight;
- WORD wItemCount;
- };
- struct SpawnItem
- {
- int iImageIdx;
- int iCmd;
- char cText[128];
- };
- struct ImageItem
- {
- int iImageIdx;
- int iCmd;
- };
- CGfxPopupMenu();
- virtual ~CGfxPopupMenu();
- HFONT hMenuBoldFont;
- bool CreateBoldFont();
- HFONT hMenuFont, hGuiFont;
- CSize szImage;
- int FindImageItem(const int cmd);
- SpawnItem * AddSpawnItem(const char * txt, const int cmd);
- void AddImageItem(const int idx, WORD cmd);
- void RemapMenu(CMenu * pMenu);
- CImageList ilList;
- CImageList ilOther;
- COLORREF crMenuText, crMenuTextSel;
- COLORREF cr3dFace, crMenu, crHighlight, cr3dHilight, cr3dShadow, crGrayText;
- COLORREF m_clrBtnFace, m_clrBtnHilight, m_clrBtnShadow;
- int iSpawnItem;
- SpawnItem ** pSpawnItem;
- int iImageItem;
- ImageItem * pImageItem;
- bool LoadToolBarResource(unsigned int resId);
- bool AddToolBarResource(unsigned int resId);
- void EnableMenuItems(CMenu * pMenu, CWnd * pParent);
- virtual void DrawItem(LPDRAWITEMSTRUCT lpDrawItemStruct);
- virtual void MeasureItem(LPMEASUREITEMSTRUCT lpMeasureItemStruct);
- };
- #endif // !defined(AFX_GFXPOPUPMENU_H__F2CEE8B2_014D_11D2_83E4_0000B43382FE__INCLUDED_)