1个回答
展开全部
你做一个 弹出 菜单 响应一个 WM_DESTORY 消息就行了
VOID PopMenu(HWND hWnd)
{
HMENU hMenu;
HMENU hMenuTrackPopup;
POINT point;
hMenu=LoadMenu(hInst,MAKEINTRESOURCE(IDR_POP_MENU));
hMenuTrackPopup=GetSubMenu(hMenu,0);
GetCursorPos(&point);
TrackPopupMenuEx(hMenuTrackPopup,TPM_LEFTALIGN|TPM_RIGHTALIGN,point.x,point.y,hWnd,NULL);
DestroyMenu(hMenu);
}
这是 弹出菜单 实现代码 菜单就要你自己画了
有不懂的再Hi我吧
VOID PopMenu(HWND hWnd)
{
HMENU hMenu;
HMENU hMenuTrackPopup;
POINT point;
hMenu=LoadMenu(hInst,MAKEINTRESOURCE(IDR_POP_MENU));
hMenuTrackPopup=GetSubMenu(hMenu,0);
GetCursorPos(&point);
TrackPopupMenuEx(hMenuTrackPopup,TPM_LEFTALIGN|TPM_RIGHTALIGN,point.x,point.y,hWnd,NULL);
DestroyMenu(hMenu);
}
这是 弹出菜单 实现代码 菜单就要你自己画了
有不懂的再Hi我吧
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询