|
// FavoritesMenu.h: interface for the CFavoritesMenu class.
//
//////////////////////////////////////////////////////////////////////
#ifndef __FAVORITESMENU_H_
#define __FAVORITESMENU_H_
#include <commctrl.h>
#include <map>
#include "ConfigurationFile.h"
typedef std::map<int,IXMLDOMElement *> T_menuElmMap;
typedef std::map<int,IXMLDOMElement *>::iterator T_menuElmMap_Itor;
class CFavoritesMenu : public CConfigurationFile
{
public:
CFavoritesMenu();
virtual ~CFavoritesMenu();
virtual void Load(IApplication *pIApp);
protected:
virtual bool AddItem(IXMLDOMElement *pElm,const ITEM_TYPES itemType);
virtual void RecursiveLoad(IXMLDOMNode *pChildNode);
protected:
ITEM_TYPES LookupMenuItemSpecifics(const int menuID,char *pTextBuffer,HICON*pIconOpt=NULL);
void ReleaseAllMappedElms();
void DoMenuCommand(const long menuID,IApplication *pIApp);
void HandleConfigCommand();
static LRESULT CALLBACK st_PopupMenuWndProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam);
static CFavoritesMenu* m_pThis;
HIMAGELIST m_hImageList;
int m_imageListHeight,m_imageListWidth;
SIZE m_menuIconSize;
POINT m_menuDropMousePoint;
HMENU m_hTopLevelMenu;
HMENU m_hMenu;
int m_nextMenuID;
T_menuElmMap m_id2ElmMap;
};
#endif // !__FAVORITESMENU_H_
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.
A list of licenses authors might use can be found here
I work when you don't. Sleep is for wussies.
The answer is no, whatever the question is. You can't have it, you don't need it, and you'd just break it in five minutes if I give it to you anyways.
If you're interested, my web site is at
NOPcode.com and has lots of cool stuff with programming and a one-of-a-kind
Audio Server.