函数的理解

SSN_PLUGIN SSN_RETURN PiInit()
{
static SSN_COMMAND cmd[] = 
{
SSN_COMMAND(SSN_OBJECT_ID(SSN_PLUGIN_ID_UI_CORE, 1), 0, SSN_CMD_CONFIG_SHOW_ON_MENU, _T(""), _T("快捷键设置"), _T("test"), (PVOID)ShowDialog, SSN_MENU_TOOLS),
//SSN_COMMAND(SSN_OBJECT_ID(SSN_PLUGIN_ID_UI_CORE, 2), 0, SSN_CMD_CONFIG_SHOW_ON_MENU, _T(""), _T("test sub"), _T("test sub"),  (PVOID)CoreUICallCmdAction, SSN_OBJECT_ID(SSN_PLUGIN_ID_UI_CORE, 1)),
};


for (INT i=0; i<_countof(cmd); i++)
{
SsnRegisterCommandHandler(&cmd[i]);
}
return SSN_OK;

}


SsnRegisterCommandHandler(&cmd[i]);把相关的信息注册到 信息里;

你可能感兴趣的:(UI,object,command,cmd,tools,menu)