News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

About menu.

Started by G`HOST, December 27, 2005, 08:39:31 PM

Previous topic - Next topic

G`HOST

Hi,
   Can we Treat a popup(Drop down) menu as window?I am actually trying to change the color of the background of the drop down menu.But the usual way is not working.and how about menu bar,how to color it.

P1

That is usually a windows system function.  You can change it globally for all windows.  Or goto to your own owner draw menus.  It seems like to me, if you use 'Search', there are several custom menus on here.

Regards,  P1  :8)

lamer

If you are looking for a ready at hand solution - look here:
http://www.masmforum.com/simple/index.php?topic=2494.0
Otherwise be ready to set MFT_OWNERDRAW flag for your menus, process WM_MEASUREITEM, WM_DRAWITEM and more...
By the way, menu IS a window. It's class is #32768. You may superclass it.

Regards

G`HOST

MenuWOW,No,Good work though,rather GreatWork.Two thumbs up to you  :U :U Actually i got the idea to try doing it from MenuWOW.But i would really like to see the source.
And ya searched around and found a good example.I didnt think its going to be a lot of work doing it.thats why i asked here.