SECMDIFrameWnd::DockControlBarEx
This member function is similar in purpose to CFrameWnd::DockControlBar except it gives greater control over how and where the control bar will be docked. For example, with DockControlBarEx, you can specify that you want four control bars with the first docked on a row by itself and the last three docked side by side on the second row. Moreover, you can request that the second row of three control bars be divided 70%, 10%, and 15%. In addition, you can specify the height of all control bars (and therefore the row) to be 100 pixels.
Defined in: swinmdi.cpp
Syntax
void SECMDIFrameWnd::DockControlBarEx(CControlBar* pBar, UINT nDockBarID,int nCol, int nRow, float fPctWidth, int nHeight)
void SECMDIFrameWnd::DockControlBarEx(CControlBar* pBar, const SECDockPos & rDockPos, UINT nDockBarID, const SECDockSize & rDockSize)
Return Value
void
Parameters
pBar
The control bar to be docked.
rDockPos
nDockBarID
The ID of the dock bar to dock the control bar to.
nCol
The column where the control bar should be positioned. The column index is zero-based.
nRow
The row where the control bar should be positioned. The row index is zero-based.
fPctWidth
The percent of the dock bar’s width that the control bar should occupy. If the dock bar identified by nDockBarID is a vertical dock bar, this parameter really specifies the percent of the dock bar’s height the control bar should occupy.
nHeight
The requested height (in pixels) of the control bar. If the dock bar is vertical, this parameter actually represents the control bar width.