09-28-2009, 02:45 AM
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.
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.