Pls help me out, i made a right click popup menu. It did appear but appeared as a tiny winy narrow popup, i can't see the words but i could click it. Is there any ways to enlarge it ? theres another thread abt this but its in MFC - http://cboard.cprogramming.com/showt...ght=popup+menu is there a solution for win32 api ? My codes r as follows.
Code:
case WM_CREATE:
hmenu = LoadMenu(hinst,MAKEINTRESOURCE(IDM_RCLICK));
break;
// i tried adding hmenu = GetSubMenu() and the popup couldn't even work or show !
case WM_RBUTTONUP:
mouse.x = LOWORD(lParam);
mouse.y = HIWORD(lParam);
ClientToScreen(hwnd,&mouse);
TrackPopupMenu(hmenu,TPM_LEFTALIGN | TPM_RIGHTBUTTON,mouse.x,mouse.y,0,hwnd,NULL);
break;
my resource.
Code:
IDM_RCLICK MENU DISCARDABLE
BEGIN
MENUITEM "&Open", IDM_OPEN
MENUITEM SEPARATOR
MENUITEM "&Delete", IDM_DELETE
MENUITEM "&Rename", IDM_RENAME
MENUITEM SEPARATOR
MENUITEM "&Properties", IDM_PROPERTIES
END