The MASM Forum Archive 2004 to 2012

General Forums => The Campus => Topic started by: G`HOST on December 27, 2005, 08:39:31 PM

Title: About menu.
Post by: G`HOST on December 27, 2005, 08:39:31 PM
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.
Title: Re: About menu.
Post by: P1 on December 28, 2005, 05:56:03 AM
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)
Title: Re: About menu.
Post by: lamer on December 28, 2005, 07:52:09 PM
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
Title: Re: About menu.
Post by: G`HOST on December 28, 2005, 08:52:29 PM
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.