|
|
Title | Make an owner drawn menu with bitmaps |
Description | |
Keywords | owner draw menus, custom menus, bitmap, bold, underline, italic |
Categories | Controls, Software Engineering, Graphics |
|
|
Thanks to Bi Hai.
Create a new WindowProc and watch for the menu messages. When you see WM_DRAWITEM, draw the menu item using BitBlt to draw the bitmaps. When you see WM_MEASUREITEM, return the size needed by the item. When you see WM_COMMAND, execute whatever code you need for the selected menu item. See the code for all of the details.
|
|
|
|
|
|