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 » CExtControlBar docking Collapse All
Subject Author Date
Celal Sen Dec 21, 2011 - 8:09 AM

I have a control bar and I want it to be docked only at left.
g_eResizablePanelDockingType is set to __RESIZABLE_DOCKING_TYPE_STUDIO_2008_VISTA:

CExtControlBar::g_eResizablePanelDockingType = CExtControlBar::__RESIZABLE_DOCKING_TYPE_STUDIO_2008_VISTA;

The control is created as shown below:

if(!m_wndKayitBar.Create(NULL, this, ID_VIEW_CONTROLBAR,
WS_CHILD|WS_VISIBLE|WS_CLIPCHILDREN|WS_CLIPSIBLINGS
        |CBRS_LEFT|CBRS_TOOLTIPS
        |CBRS_FLYBY|CBRS_SIZE_DYNAMIC))
{
return -1;
}

And EnableDocking() parameter is set to CBRS_ALIGN_LEFT:

m_wndControlBar.EnableDocking(CBRS_ALIGN_LEFT);
DockControlBar(&m_wndControlBar);

With these settings, I can dock the bar at any position. It doesn’t prevent me to dock at top, bottom or right. Am I skipping something?

Celal Sen Mar 13, 2012 - 8:05 AM

I tested this with your sample projects and if  CExtControlBar::g_eResizablePanelDockingType is different than CExtControlBar::__RESIZABLE_DOCKING_TYPE_STUDIO_2003, I can align the control to any position although the EnableDocking parameter is set to CBRS_ALIGN_LEFT.

Celal Sen Dec 23, 2011 - 6:15 AM

So, what do you suggest?

Technical Support Dec 23, 2011 - 2:58 AM

We suspect the code loading the state of control bars has loaded it as CBRS_ALIGN_ANY.