[go: up one dir, main page]

Menu

[r1]: / PopupMenu.h  Maximize  Restore  History

Download this file

29 lines (23 with data), 792 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
// 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_)