Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Icons in PopupMenus?
#1
Can icons be used in PopupMenu menus?
I can't find info about syntax to include icons in PopupMenu.
#2
No, PopupMenu does not support icons. Would need to create other function for it.
#3
This can be achieved by using bitmaps instead of the default checkmarks.
In PopupMenuCreate, add MIIM_CHECKMARKS to mii.fMask, then set:
mii.hbmpUnchecked=LoadPictureFile("Your bitmap to be shown next to item when it is unchecked.bmp")
mii.hbmpChecked=LoadPictureFile("Your bitmap to be shown next to item when it is checked.bmp")

However it would be nice to be able to use icons instead of bitmaps.


Forum Jump:


Users browsing this thread: 1 Guest(s)