|
Every time it is displayed horizontally
code show as below:
if (! m_tool.CreateEx (this, TBSTYLE_FLAT, WS_CHILD | WS_VISIBLE | CBRS_FLOATING | CBRS_SIZE_DYNAMIC | CBRS_TOOLTIPS) ||
! m_tool.LoadToolBar (IDR_TOOLBAR1))
{
TRACE0 ("Failed to create toolbar\n");
return -1; // fail to create
}
Ranch
Ranch
m_tool.EnableDocking (CBRS_ALIGN_ANY);
EnableDocking (CBRS_ALIGN_ANY);
CPoint point (100,100);
ClientToScreen (&point);
FloatControlBar (&m_tool, point); |
|