Professional UI Solutions
Site Map   /  Register


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 » Controlling CExtDynamicControlBar frame in __EDBS_DOCUMENT mode Collapse All
Subject Author Date
Jeff Ernst May 6, 2010 - 5:47 PM

I am using a  CExtDynamicControlBar for a dialog window similar to the "Input Fields" in the Skinable example.

I am using the Office2007 paint theme with prof-uis free version 2.88.

The bar is connected to a button on the mainframe that shows or hides the window using:

m_pStrategyBar->BarStateSet(CExtDynamicControlBar::__EDBS_DOCUMENT, true);

I would like to know how to:

1) Control the window size

2) Disable maximize capability.

Also, when the window is maximized or restored there is excessive painting occurring.  It seems to paint a thinner frame first, then

the thick frame. 

3) How do I suppress painting while the window is being recalculated.



Jeff Ernst May 8, 2010 - 5:29 AM

I was able to solve the issues by overriding the OnMoveChildToDocument() virtual function.


Technical Support May 7, 2010 - 12:12 PM

The second item (Disable maximize capability) lets us suppose all the three items are related to the main frame window rather to the dynamic resizable control bar window. The resizable control bar cannot be maximized.
The window size is controlled by handling the WM_GETMINMAXINFO standard message. If your main frame class is based on the CExtNCW template class, then please handle the WM_GETMINMAXINFO message in the main frame’s WindowProc() virtual method.
To disable the maximize button you should disable the SC_MAXIMIZE menu item in the main frame’s window system menu:

CMenu * pSysMenu = pMainFrame->GetSystemMenu( FALSE );
            if( pSysMenu != NULL )

Please provide us with more information about item three. Which kind of unwanted repainting and/or flicker effects occurs in your app and when? Whether the same things occur in any of Prof-UIS sample apps? Which Prof-UIS version, Visual C++ and Windows versions were used in your tests?