Advertisement

Ownerdraw menu BARS

Started by July 31, 2000 02:18 PM
1 comment, last by delphi3d 24 years, 4 months ago
Hi guys! I''m trying to do some ownerdraw menus, but I ran into a problem - I can only ownerdraw the actual items in the menu bar (i.e. the menus), not the bar itself. So if I want to have blue menus, I get "File", "Edit", etc. in blue, but the rest of my menu bar remains gray. Any ideas on how to ownerdraw a menu bar? Tom Nuydens
Tom Nuydens delphi3d@gamedeveloper.org www.gamedeveloper.org/delphi3d
I belive there''s a greater being behind it all. In other words get the parent window to those File, Windows, Help, etc.. menus and see if it''s a different parent than the window itself. I belive that the whole menu is a window, but I could be wrong (That happens every so often ;-)

- Ben

P.S. Your using Windows messages yes? Cause I''ve seen some pretty screwy attempts of programs that didn''t even have message loops, not so good! I think you''d probably have a MessageHandler for the menu window right? I think that''s what you''ll need to do. Hmm.... you got me thinking.. I''ll look up a few things and check back later with my ideas... :-)
__________________________Mencken's Law:"For every human problem, there is a neat, simple solution; and it's always wrong."
"Computers in the future may weigh no more than 1.5 tons."- Popular Mechanics, forecasting the relentless march of science in 1949
Advertisement
If you are using WIN 32 API, you have to work with the messages.
You''d better grab a WIN32 API book (the big red official one ?) or maybe MFC internals if you are into MFC.
They are so,e absolutely cool examples on the MSDN.
Yes, Microsoft can have some cool stuff. If you are into windows programming you HAVE to go on their site

youpla :-P
-----------------------------Sancte Isidore ora pro nobis !

This topic is closed to new replies.

Advertisement