Thread: Popup menu

  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 - 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
    /* 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, 01:01 AM
  3. popup menu in MFC?
    By Robert602 in forum Windows Programming
    Replies: 7
    Last Post: 07-25-2007, 09: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, 03:41 AM