aboutsummaryrefslogtreecommitdiff
path: root/Src/Plugins/Library/ml_devices/local_menu.h
blob: 1a94c2090bf61b7d78279eb445765fa72521ce44 (plain) (blame)
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#ifndef _NULLSOFT_WINAMP_ML_DEVICES_MENU_HEADER
#define _NULLSOFT_WINAMP_ML_DEVICES_MENU_HEADER

#if defined(_MSC_VER) && (_MSC_VER >= 1020)
#pragma once
#endif

#include <wtypes.h>

int 
Menu_TrackSkinnedPopup(HMENU menu, 
					   unsigned int flags, 
					   int x,
					   int y,
					   HWND hwnd,
					   LPTPMPARAMS lptpm);

unsigned int 
Menu_InsertDeviceItems(HMENU menu,
					   int position,
					   unsigned int baseId,
					   ifc_device *device,
					   DeviceCommandContext context);

unsigned int 
Menu_FreeItemData(HMENU menu, 
				  unsigned int start, 
				  int count);

ULONG_PTR
Menu_GetItemData(HMENU menu, 
				 unsigned int item,
				 BOOL byPosition);


typedef BOOL (*Menu_FindItemByDataCb)(ULONG_PTR param, void *user);

unsigned int
Menu_FindItemByData(HMENU menu, 
					Menu_FindItemByDataCb callback, 
					void *user);

unsigned int
Menu_FindItemByAnsiStringData(HMENU menu,
							  const char *string);


#endif //_NULLSOFT_WINAMP_ML_DEVICES_MENU_HEADER