Thank you for the test project. Here is how the MDI tabs control is created in it:
CRect( 0, 0, 0, 0 ),
UINT( IDC_STATIC ),
WS_CHILD | WS_VISIBLE | WS_CLIPSIBLINGS,
//PUIS_TABWINDOWFROMDI - $$__PROFUISAPPWIZ_KEY_ADF_MDITABS$$
Everything looks like absolutely OK. The standard MFC’s
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
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
. The status bar like windows created using the
constant as the dialog control identifier simply does not become repositioned by MFC.
Please replace the
constant in the code snippet above with the
constant or any else.