IonicWind Software

Aurora Compiler => Software Projects => Topic started by: sapero on November 12, 2008, 06:52:05 PM

Title: My first Office menu
Post by: sapero on November 12, 2008, 06:52:05 PM
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.
Title: Re: My first Office menu
Post by: aurelCB on November 14, 2008, 03:45:10 AM
I dont understand Aurora code but program looks great :)
Title: Re: My first Office menu
Post by: gjaking on November 14, 2008, 03:52:09 AM
it is simple for you change the code for EB ?
this sample is fantastic !!!
Title: Re: My first Office menu
Post by: sapero on November 16, 2008, 07:21:14 AM
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 (http://www.ionicwind.com/forums/index.php/topic,2914.0.html)