Hello,
in the tab control parent window procedure I usually do something like the
following:
Code:case WM_SIZE: MoveWindow(hTab, ....); RECT rc; GetClientRect(hTab, &rc); TabCtrl_AdjustRect(hTab, FALSE, &rc); // resizing windows displayed on the different tabs MoveWindow(hChild2, rc.left, rc.top, rc.right - rc.left, rc.bottom - rc.top, TRUE); MoveWindow(hChild3, rc.left, rc.top, rc.right - rc.left, rc.bottom - rc.top, TRUE); // .... return 0;
This works for example using the following styles:
1) WS_CHILD | WS_VISIBLE | WS_CLIPSIBLINGS
2) WS_CHILD | WS_VISIBLE | WS_CLIPSIBLINGS | TCS_VERTICAL
3) WS_CHILD | WS_VISIBLE | WS_CLIPSIBLINGS | TCS_BUTTONS
But it does not work with the following set of styles:
WS_CHILD | WS_VISIBLE | WS_CLIPSIBLINGS | TCS_VERTICAL | TCS_BUTTONS
... in other words when using buttons (TCS_BUTTONS) and displaying them
vertically (TCS_VERTICAL).
Could anyone explain why this is happening???
How do I get the display area in this case???
Regards,
Bob



LinkBack URL
About LinkBacks



