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 » Toolbar CExtButton Paintmanager issue. Collapse All
Subject Author Date
Dominik Braendlin May 12, 2010 - 2:38 PM

Hi Tech Support,

 

I have added a CExtButton to ToolBar using the SetButtonCtrl method. The problem arises with e.g. the Office 2007 Windows Layout. The button has a different design than the rest of the toolbar buttons.

 

The same effect can be seen in the ProfStudio project. Please check the code at ProfStudioObjectBrowserView.cpp around Ln 146 (v2.88). Run the demo using one of the Office 2007 layouts and check the button _T("&Customize..."). I hope you will see it.

 

Since a Prof-UIS project shows the same effect as my project I assume it is a bug or by design.

 

Could you modify the code in such way that CExtButton looks exactly like the rest of the not modified toolbar buttons?

 

Thanks

 

Technical Support May 13, 2010 - 12:52 PM

The solution is not to use the CExtButton control inside toolbar. The CExtButton is the HWND-based element. The CExtToolControlBar window is mainly designed to operate with the CExtBarButton objects implementing the non-HWND-based toolbar buttons. The CExtBarButton class implements the same kind of push button and it also supports the drop down menu. You don’t have any reasons to insert the button common control into toolbar.