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 General Discussion » Is RibbonBar in Dialog based application possible? Collapse All
Subject Author Date
parikshit nangre May 9, 2008 - 11:16 PM

I am trying to implement RibbonBar in a dialog based application. I am refering to your application in which you have implemented RibbonBar. I have followed all the steps follwed by you. But in your application , in the function


BOOL CRibbonBarApp::InitInstance()


{


---------------------------


---------------------------


pFrame->ActivateFrame( SW_SHOW );


}


is called. I am not able to do this as i am doing dialog based application.


So Ribbonbar is not visible on dialog. How can i make it visible? what code i need to write?


 

Technical Support May 10, 2008 - 12:17 PM

You should simply show it using CWnd::ShowWindow() or create it with the <code>WS_VISIBLE style. Please note that the ribbon bar is kind of MFC control bar. This means your dialog class should invoke CWnd::RepositionBars( 0, 0xFFFF, 0 ); at the end of the OnInitDialog() method and in the OnSize() method.