添加工具菜单回调函数示例代码如下:
AADMSMENUITEM aaMenuItem;
m_uiToolId = aaApi_ReserveCommandIdByType(AAMENU_TOOLS);
ZeroMemory(&aaMenuItem,sizeof(AADMSMENUITEM));
aaMenuItem.ulMask = AADMSMIF_FLAGS | AADMSMIF_NAME | AADMSMIF_CMDTYPE | AADMSMIF_PROMPT |
AADMSMIF_CMDID | AADMSMIF_CALLBACK ;
aaMenuItem.uiFlags = AAMIF_COMMAND;
aaMenuItem.uiCmdType = AAMENU_TOOLS;
aaMenuItem.lptstrPrompt = L"Tool测试";
aaMenuItem.lptstrName = L"Tool测试";
aaMenuItem.uiCommandId = m_uiToolId;
aaMenuItem.fpExecute = lpCallback;
aaMenuItem.ushParamType = AACMDPT_GENERIC;
aaApi_AddCustomMenuItem(0, AADMSMI_LAST , &aaMenuItem);