Thank you for the test project. Here is how the MDI tabs control is created in it:
if( !m_wndMdiTabs.Create(
this,
CRect( 0, 0, 0, 0 ),
UINT( IDC_STATIC ),
WS_CHILD | WS_VISIBLE | WS_CLIPSIBLINGS,
__ETWS_ORIENT_TOP
|__ETWS_ENABLED_BTN_CLOSE
|__ETWS_SHOW_BTN_CLOSE
)
//PUIS_TABWINDOWFROMDI - $$__PROFUISAPPWIZ_KEY_ADF_MDITABS$$
)
Everything looks like absolutely OK. The standard MFC’s
IDC_STATIC
constant is used as the dialog control identifier. This constant is the real source of the problem and that is why Prof-UIS uses its own
__EXT_MFC_IDC_STATIC
constant instead. Here is the technical information:
1) In Visual Studio 2005 and older versions you can use any constant as dialog control identifier of the control bar like window.
2) In Visual Studio 2008 and newer versions you can use any constant but not
IDC_STATIC
. The status bar like windows created using the
IDC_STATIC
constant as the dialog control identifier simply does not become repositioned by MFC.
Please replace the
IDC_STATIC
constant in the code snippet above with the
__EXT_MFC_IDC_STATIC
constant or any else.