what's the simplest way of adding icons to menus? i've tried several things from several different sites and can't get a single one to work. i always get some error, either that i don't have the proper license or variable not defined cause there's aways code in the project referring to an object that's not even there. all i want to do is add icons to my menus, nothing fancy, no specialo menu highlighting or coloring or anything, i just need icons.
Using API u can acheive, the following are API's which can be use to create menu's with icons.
Code:
Private Declare Function GetMenu Lib "user32" (ByVal hwnd As Long) As Long
Private Declare Function GetSubMenu Lib "user32" (ByVal hMenu As Long, ByVal nPos As Long) As Long
Private Declare Function GetMenuItemID Lib "user32" (ByVal hMenu As Long, ByVal nPos As Long) As Long
Private Declare Function SetMenuItemBitmaps Lib "user32" (ByVal hMenu As Long, ByVal nPosition As Long, ByVal wFlags As Long, ByVal hBitmapUnchecked As Long, ByVal hBitmapChecked As Long) As Long
If you are not able to proceed further, I can send u a sample project.
have you ever used any of those custom menu controls from other sites that let you use icons (whose colors aren't reversed when you mouseover them) ,set background pictures or colors, and more stuff like that? if so have you been able to get any to work, cause i know i haven't.
oh and that'd be great if you could notify me if you find out how to get the colors to stay the same using that code that you attached.
how do i alter the code so that i don't hafat rename all my menus like s1m2, s2m2, etc? so that instead i can use like filenew and fileopen, confusing when the menu names aren't explanatory.
* The Best Reasons to Target Windows 8
Learn some of the best reasons why you should seriously consider bringing your Android mobile development expertise to bear on the Windows 8 platform.