May 19, 2024, 01:54:39 AM


IonicWind Snippit Manager 2.xx Released!  Install it on a memory stick and take it with you!  With or without IWBasic!

My first Office menu

Started by sapero, November 12, 2008, 06:52:05 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.


This is my first custom drawn menu. Colors are taken from Visual studio 2005 IDE.

You'll find here how to use gdiplis.dll to load PNG image from resource, how to handle ownerdrawn menu messages (WM_MEASUREITEM and WM_DRAWITEM).
Not all is finished, todos and requirements are listed in OfficeMenu.src.


I dont understand Aurora code but program looks great :)


it is simple for you change the code for EB ?
this sample is fantastic !!!


November 16, 2008, 07:21:14 AM #3 Last Edit: December 13, 2008, 07:31:12 PM by sapero
I have finished it.
If an item is disabled, its bitmap will be grayed. The way you assign image index to menu item has changed - image (by index) is extracted and assigned to menu item as checkmarks.
Please remember to call SetActiveMenu before displaying context menu. It may be automated only if you ensure different menu item id's for context menu and the window menu.

Emergence version can be found here