ContextMenus with icons 
Author Message
 ContextMenus with icons

Does anyone have some code on how to create context menus (shown at
MousePointer position) with images ?

I used this API code

  lHandle = GetMenu(Me.hWnd)
  lHandle = GetSubMenu(lHandle, lIndex)
  Call SetMenuItemBitmaps(lHandle, 0, MF_BYPOSITION, lItemImage, lItemImage)

but it creates strange effects:

The bitmaps are cutted to 14 pixels and 16 colors
The white color is set to transparent

Any suggestion, sample ?

Thanks in advance
David



Mon, 31 May 2004 16:53:38 GMT  
 ContextMenus with icons
Go to www.vbaccelerator.com


Wed, 02 Jun 2004 02:19:33 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. NotifyIcon / ContextMenus

2. tray icon/menu icon

3. removing system tray icon without a icon picture.

4. Icon Index? (storing 3 icons in a project)

5. me.icon = obj.icon error

6. help extracting icons from dll to icon property

7. changing the icon placed as the application icon.

8. ICO-Icons or BMP-Icons wanted !!!

9. ICONS, how do you assign more than just one icon to your app

10. How to get icon from Icon Handle

11. How to get Icon from Icon Handle

12. Setting a form icon to an ImageList icon

 

 
Powered by phpBB® Forum Software