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 - Popup menu problem is there a solution for win32 api ? My codes r as follows.
my resource.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;
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