   Tab control: how to calculate a tab display area???
  Hello,in the tab control parent window procedure I usually do something like the following: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_CLIPSIBLINGS2) WS_CHILD | WS_VISIBLE | WS_CLIPSIBLINGS | TCS_VERTICAL3) WS_CHILD | WS_VISIBLE | WS_CLIPSIBLINGS | TCS_BUTTONSBut 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   