March 28, 2024, 05:14:16 PM

News:

Own IWBasic 2.x ? -----> Get your free upgrade to 3.x now.........


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.

sapero

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.

aurelCB

I dont understand Aurora code but program looks great :)

gjaking

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

sapero

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