Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
目前我正在使用 ON_WM_SELECT messgae,但它会在鼠标悬停在菜单上时触发。
而不是 ON_WM_SELECT 我使用 COMMAND_RANGE_HANDLER(0, 10000, OnClickCopyItem) 来获取每个菜单项的单击事件
COMMAND_RANGE_HANDLER(idFirst, idLast, func)