菜单显示

xiaoxiao2021-02-28  88

CMenu menuTray; CPoint point;   // 显示位置 int id;               // 菜单项id ::GetCursorPos(&point); menuTray.LoadMenu(IDR_MENU_TRAY);

id = menuTray.GetSubMenu(0)->TrackPopupMenu(TPM_RETURNCMD | TPM_LEFTALIGN | TPM_RIGHTBUTTON,

point.x, point.y, this);

转载请注明原文地址: https://www.6miu.com/read-78587.html

最新回复(0)