Popup menu

This is a discussion on Popup menu within the Windows Programming forums, part of the Platform Specific Boards category; Pls help me out, i made a right click popup menu. It did appear but appeared as a tiny winy ...

  1. #1
    rEtaRD r HUMANS TOO !!! rEtard's Avatar
    Join Date
    Feb 2005
    Posts
    80

    Popup menu

    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.
    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
    /* Have a nice day */

  2. #2
    rEtaRD r HUMANS TOO !!! rEtard's Avatar
    Join Date
    Feb 2005
    Posts
    80
    Guys Sorrie I found the solution!
    /* Have a nice day */

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 2
    Last Post: 03-05-2009, 10:25 AM
  2. Another syntax error
    By caldeira in forum C Programming
    Replies: 31
    Last Post: 09-05-2008, 02:01 AM
  3. popup menu in MFC?
    By Robert602 in forum Windows Programming
    Replies: 7
    Last Post: 07-25-2007, 10:34 PM
  4. TreeView + Popup menu
    By JaWiB in forum Windows Programming
    Replies: 9
    Last Post: 02-17-2006, 01:56 AM
  5. Constructive Feed Back (Java Program)
    By xddxogm3 in forum Tech Board
    Replies: 12
    Last Post: 10-10-2004, 04:41 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21