5 static const GUID guid_mygroup = { 0x572de7f4, 0xcbdf, 0x479a, { 0x97, 0x26, 0xa, 0xb0, 0x97, 0x47, 0x69, 0xe3 } };
28 case cmd_test1: p_out =
"Test command";
break;
29 case cmd_test2: p_out =
"Calculate peak";
break;
49 if (!__super::context_get_display(p_index, p_data, p_out, p_displayflags, p_caller))
return false;
51 p_out <<
" : " << p_data.
get_count() <<
" item";
52 if (p_data.
get_count() != 1) p_out <<
"s";
56 return __super::context_get_display(p_index, p_data, p_out, p_displayflags, p_caller);
62 static const GUID guid_test1 = { 0x4021c80d, 0x9340, 0x423b, { 0xa3, 0xe2, 0x8e, 0x1e, 0xda, 0x87, 0x13, 0x7f } };
63 static const GUID guid_test2 = { 0xe629b5c3, 0x5af3, 0x4a1e, { 0xa0, 0xcd, 0x2d, 0x5b, 0xff, 0xa6, 0x4, 0x58 } };
74 p_out =
"This is a sample command.";
77 p_out =
"This is a sample command that decodes the selected tracks and reports the peak sample value.";
90 message <<
"This is a test command.\n";
92 message <<
"Parameters:\n";
94 message << data[walk] <<
"\n";
unsigned get_num_items()
Retrieves number of menu items provided by this contextmenu_item implementation.
void get_item_name(unsigned p_index, pfc::string_base &p_out)
Retrieves human-readable name of the context menu item.
bool get_item_description(unsigned p_index, pfc::string_base &p_out)
Retrieves item's description to show in the status bar. Set p_out to the string to be displayed and r...
GUID get_item_guid(unsigned p_index)
Retrieves GUID of the context menu item.
virtual t_size get_count() const =0
bool context_get_display(unsigned p_index, metadb_handle_list_cref p_data, pfc::string_base &p_out, unsigned &p_displayflags, const GUID &p_caller)
PFC_NORETURN void SHARED_EXPORT uBugCheck()
void context_command(unsigned p_index, metadb_handle_list_cref p_data, const GUID &p_caller)