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 » [Q] attach the CExtToolControlBar and SetBarStyle(...) Collapse All
Subject Author Date
Hyeon Soo Ryu Jul 8, 2009 - 5:31 AM


I attached the CExtToolControlBar on the Top of the CExtResizableDialog  



  DWORD dwerr2 = GetLastError();

  TRACE0("Failed to create toolbar\n");

  return FALSE;      // fail to create



And  Set Toolbar Style......( resource style value is  0x50402034 )

m_wndEmapToolBar.SetBarStyle( m_wndEmapToolBar.GetBarStyle() & ~CBRS_GRIPPER );



I want to remove the Toolbar option tag ( at  right end of the toolbar ,  small triangle )    that I can’t push now. 

So I want to remove the mark (small triangle)

What  Style value ( Style Option )  can I select ????

Thanks. ˆˆ





Technical Support Jul 8, 2009 - 10:32 AM

To remove the chevron button from a toolbar, you should use a toolbar class like this:

 class CYourToolbar : public CExtToolControlBar
            virtual CExtBarContentExpandButton * OnCreateBarRightBtn()
                  ASSERT_VALID( this );
                  return NULL;