How can I make it so there is not the bar at the top of the form with the
-[]X (minimize, maximize, exit) buttons and still have a menu such as File and Help?
Printable View
How can I make it so there is not the bar at the top of the form with the
-[]X (minimize, maximize, exit) buttons and still have a menu such as File and Help?
Looks like your best choice would be subclassing. Basically you'd capture some of the window drawing messages the window receives and change them so that no caption bar never gets drawn and then reposition the menu. I'm actually not entirely sure if this can be done as I haven't tried doing it by myself, but subclassing would be the most lightweight solution (processor usage wise) for doing it. Your other solution would be to make the menu systems yourself, ie. have menus in another hidden form and then use PopupMenu to pop out the menus.
If interested for an easy way to subclass, take a look at WinSubHook (Planet Source Code).
Well, I decided to go with making my own menu. Thanks for all the help
Download this very nicely wrapped and basically plug-and-play FormBdr class by Karl E. Peterson - that's all you need.
It's very simple to use but let me know if you have any troubles...