OK, I'll answer it myself. DECLARE_CONTEXT_MENU_ITEM is a simple way to add one static context menu item. Here is an example.
CODE
//Replace the GUID with something of your own.
const GUID myguid = { 0x00000000, 0x0000, 0x0000, { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFF } };
void myfunc( const pfc::list_base_const_t<metadb_handle_ptr> & p_data )
{
//Do nothing.
return;
}
DECLARE_CONTEXT_MENU_ITEM (contextmenu_myitem, // Class Name
"My Context Menu item", // Menu Item Text
"My Context Menu Group", // Default Path (Group)
myfunc, // Your Function
myguid, // Your GUID
"This is the description." // as it says)
Simple and neat. I like it.