Click here to Skip to main content
15,886,806 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello

There are a lot of articles related to customizing main menu of the dialog window on Codeproject, including "custom-drawn" menus. But none of them seem to answer my question.

I have a (borderless) window that has a custom-drawn by hand title bar (take a look at the picture: http://tau.rghost.ru/36362976.image). I need to display somehow a main menu under this "fat" title bar. How could I do this, using MFC? By default "native" menus seem to be able to be located only in the top of the client area of the dialog window. Is there any solution for my problem?
Thank you!
Posted

1 solution

Man, Lots to describe,

By The way, if you know how to pop up menu anywhere in the window it wont be a big task for you to create and display your own menu under your fat title bar.
 
Share this answer
 
Comments
somebody111 7-Feb-12 4:45am    
Hi John,

Could you please elaborate a bit, at least some basic steps that I should do? I am totally new to MFC.
I have found some examples on how to pop up a context menu anywhere on the screen for random controls. So I suppose, there is no way to display a "real" menu bar, and I should paint one by myself with some customized buttons that behave and look like real menu bar, but that pop up context menus when clicked? But where to find these "buttons" or a whole panel? Should it all be done from scratch? Could I use some existing code?

Thank you!
Mohibur Rashid 7-Feb-12 5:02am    
First view Main menu as a normal child window, you can create on_mouseover view, such as change color, changing font etc(just for beautification).

Then on_click just pop up the associated menu right bottom of the window. I will give an example when I reach homw
somebody111 7-Feb-12 6:24am    
Thank you.. if you find time, could you give me an example?
Mohibur Rashid 7-Feb-12 20:26pm    
follow the link, http://www.codeproject.com/Articles/2080/Transparent-Menu

it is about transparent menu, but it will give you vivid idea how you can make your own menu control.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900