Home
Search
 
What's New
Index
Books
Links
Q & A
Newsletter
Banners
 
Feedback
Tip Jar
 
XML RSS Feed
 
 
 
 
 
 
 
 
TitleMake an owner drawn menu with bitmaps
Description
Keywordsowner draw menus, custom menus, bitmap, bold, underline, italic
CategoriesControls, 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.

 
 
Copyright © 1997-2003 Rocky Mountain Computer Consulting, Inc.   All rights reserved.
  Updated