Thread: Icons of pop-up menus

  1. #1
    Registered User ExDigit's Avatar
    Join Date
    Jan 2002
    Posts
    31

    Icons of pop-up menus

    Is it possible to put an icon next to an item on a pop-up menu, and if so, how? I've seen this done in some programs..

    I'm using API, not MFC (and resources aren't a problem).

    Thanks,
    Chris

  2. #2
    S­énior Member
    Join Date
    Jan 2002
    Posts
    982
    Fill out a MENUITEMINFO struct, the hbmpItem field needs the handle to the bitmap to use as an icon. Then use SetMenuItemInfo().

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Michael Jackson: dead at age 50
    By Sebastiani in forum General Discussions
    Replies: 78
    Last Post: 07-25-2009, 10:27 AM
  2. [C] Problem with icons in a toolbar
    By pc2-brazil in forum Windows Programming
    Replies: 3
    Last Post: 12-22-2008, 11:04 PM
  3. Queues
    By ramayana in forum C Programming
    Replies: 22
    Last Post: 01-01-2006, 02:08 AM
  4. Owner Drawn dynamic menus
    By cpeschke in forum Windows Programming
    Replies: 0
    Last Post: 04-18-2005, 04:55 PM
  5. Creating pop up menus
    By Ti22 in forum C++ Programming
    Replies: 22
    Last Post: 01-18-2005, 09:27 PM