#include <contextmenu_manager.h>
Definition at line 72 of file contextmenu_manager.h.
Enumerator |
---|
flag_show_shortcuts |
|
flag_show_shortcuts_global |
|
flag_view_reduced |
- Since
- 1.0 To control which commands are shown, you should specify either flag_view_reduced or flag_view_full. If neither is specified, the implementation will decide automatically based on shift key being pressed, for backwards compatibility.
|
flag_view_full |
- Since
- 1.0 To control which commands are shown, you should specify either flag_view_reduced or flag_view_full. If neither is specified, the implementation will decide automatically based on shift key being pressed, for backwards compatibility.
|
FLAG_SHOW_SHORTCUTS |
|
FLAG_SHOW_SHORTCUTS_GLOBAL |
|
Definition at line 75 of file contextmenu_manager.h.
bool contextmenu_manager::execute_by_id |
( |
unsigned |
id | ) |
|
bool contextmenu_manager::get_description_by_id |
( |
unsigned |
id, |
|
|
pfc::string_base & |
out |
|
) |
| |
virtual bool contextmenu_manager::init_context_now_playing |
( |
unsigned |
flags | ) |
|
|
pure virtual |
virtual void contextmenu_manager::init_context_playlist |
( |
unsigned |
flags | ) |
|
|
pure virtual |
void contextmenu_manager::win32_build_menu |
( |
HMENU |
menu, |
|
|
contextmenu_node * |
parent, |
|
|
int |
base_id, |
|
|
int |
max_id |
|
) |
| |
|
static |
Definition at line 35 of file menu_manager.cpp.
41 for(child_idx=0;child_idx<child_num;child_idx++)
46 const char * name = child->
get_name();
51 HMENU new_menu = CreatePopupMenu();
62 if (
id>=0 && (max_id<0 ||
id<max_id))
65 const UINT ID = base_id+id;
BOOL SHARED_EXPORT uAppendMenu(HMENU menu, UINT flags, UINT_PTR id, const char *content)
string8_t< pfc::alloc_fast_aggressive > string8_fastalloc
void contextmenu_manager::win32_build_menu |
( |
HMENU |
menu, |
|
|
int |
base_id, |
|
|
int |
max_id |
|
) |
| |
|
inline |
void contextmenu_manager::win32_run_menu_context |
( |
HWND |
parent, |
|
|
metadb_handle_list_cref |
data, |
|
|
const POINT * |
pt = 0 , |
|
|
unsigned |
flags = 0 |
|
) |
| |
|
static |
Definition at line 123 of file menu_manager.cpp.
127 manager->init_context(data,flags);
128 manager->win32_run_menu_popup(parent,pt);
Autopointer class to be used with all services. Manages reference counter calls behind-the-scenes.
void contextmenu_manager::win32_run_menu_context_playlist |
( |
HWND |
parent, |
|
|
const POINT * |
pt = 0 , |
|
|
unsigned |
flags = 0 |
|
) |
| |
|
static |
Definition at line 131 of file menu_manager.cpp.
135 manager->init_context_playlist(flags);
136 manager->win32_run_menu_popup(parent,pt);
Autopointer class to be used with all services. Manages reference counter calls behind-the-scenes.
void contextmenu_manager::win32_run_menu_popup |
( |
HWND |
parent, |
|
|
const POINT * |
pt = 0 |
|
) |
| |
Definition at line 91 of file menu_manager.cpp.
93 enum {ID_CUSTOM_BASE = 1};
100 else GetCursorPos(&p);
102 HMENU hmenu = CreatePopupMenu();
108 cmd = TrackPopupMenu(hmenu,TPM_RIGHTBUTTON|TPM_NONOTIFY|TPM_RETURNCMD,p.x,p.y,0,parent,0);
109 }
catch(...) {DestroyMenu(hmenu);
throw;}
116 if (cmd>=ID_CUSTOM_BASE)
The documentation for this class was generated from the following files: