Setting Icons in menu

This is a discussion on Setting Icons in menu within the Windows Programming forums, part of the Platform Specific Boards category; Is there a way which i can set an icon to a menu item? i tried SetMenuItemBitmaps but it works ...

  1. #1
    Information Crocodile
    Join Date
    Dec 2004
    Posts
    204

    Setting Icons in menu

    Is there a way which i can set an icon to a menu item?

    i tried SetMenuItemBitmaps but it works only for bitmaps is there a function for icons?

  2. #2
    erstwhile
    Join Date
    Jan 2002
    Posts
    2,227
    Not directly. Follow the instructions under Using Custom Check Mark Bitmaps, To create a bitmap at run time and then use DrawIconEx to draw the icon to the dynamically created bitmap just selected into the device context.
    CProgramming FAQ
    Caution: this person may be a carrier of the misinformation virus.

  3. #3
    Registered User
    Join Date
    Jan 2005
    Posts
    12

  4. #4
    Information Crocodile
    Join Date
    Dec 2004
    Posts
    204
    Quote Originally Posted by Ken Fitlike
    Not directly. Follow the instructions under Using Custom Check Mark Bitmaps, To create a bitmap at run time and then use DrawIconEx to draw the icon to the dynamically created bitmap just selected into the device context.

    Thnks for the links i think these are the ones i need

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Checking array for string
    By Ayreon in forum C Programming
    Replies: 87
    Last Post: 03-09-2009, 03:25 PM
  2. Replies: 2
    Last Post: 03-05-2009, 09:25 AM
  3. Another syntax error
    By caldeira in forum C Programming
    Replies: 31
    Last Post: 09-05-2008, 01:01 AM
  4. Constructive Feed Back (Java Program)
    By xddxogm3 in forum Tech Board
    Replies: 12
    Last Post: 10-10-2004, 03:41 AM

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