Professional UI Solutions
Site Map   /  Register
 
 

Forum

Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Prof-UIS Tech Support » Placing a menubar and a toolbar on the same row Collapse All
Subject Author Date
Seth Strong Nov 1, 2006 - 12:48 PM

How can I place a toolbar on the same row as the menu in a standard application?

Thanks in advance,
Seth

Technical Support Nov 2, 2006 - 9:23 AM

By default, the menu bar takes up the entire row but you can change this by using a CExtMenuControlBar-derived class like as follows:

class CYourMenuBar : public CExtMenuControlBar
{
public:
    virtual bool _GetFullRowMode() const
    {
        return false;
    }
};
The above version version works like a toolbar. Please also read the FAQ How to set the initial positions of toolbars when the application starts for the first time? with this.