// PopupMenu.h: interface for the PopupMenu class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_POPUPMENU_H__EBA3F7DC_4743_4D41_B04A_D74F1A0A1998__INCLUDED_)
#define AFX_POPUPMENU_H__EBA3F7DC_4743_4D41_B04A_D74F1A0A1998__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include <windows.h>
class PopupMenu
{
public:
bool RemoveItem(DWORD id);
bool WndHook(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam);
bool AddItem(LPTSTR text, DWORD id, DWORD imgIdx);
PopupMenu(int ResID,HBITMAP img, COLORREF trans ,SIZE cellsz);
virtual ~PopupMenu();
private:
HBITMAP bmpColor,
bmpMask;
SIZE cell;
};
#endif // !defined(AFX_POPUPMENU_H__EBA3F7DC_4743_4D41_B04A_D74F1A0A1998__INCLUDED_)