是用TrackPopupMenu吗? 不一定是要父窗体来接收, 注意TPM_NONOTIFY属性 ON_COMMAND宏的第一个参数是菜单具体某项的IDMSDN原话 If you specify TPM_NONOTIFY in the uFlags parameter, the function does not send messages to the window identified by hWnd. However, you must still pass a window handle in hWnd. It can be any window handle from your application.
不一定是要父窗体来接收, 注意TPM_NONOTIFY属性
ON_COMMAND宏的第一个参数是菜单具体某项的IDMSDN原话
If you specify TPM_NONOTIFY in the uFlags parameter, the function does not send messages to the window identified by hWnd. However, you must still pass a window handle in hWnd. It can be any window handle from your application.