Tab control: how to calculate a tab display area???

This is a discussion on Tab control: how to calculate a tab display area??? within the Windows Programming forums, part of the Platform Specific Boards category; Hello,
in the tab control parent window procedure I usually do something like the
following:
Code:
case WM_SIZE:
MoveWindow(hTab, ....);
...

I works for me with GetClientRect(hTab, ...)
Why? Since the tab is behaving like a "client" for the child windows.
Although...I recommend to use dialogs instead placing all the controls...so, you can only Show and Destroy the dialog instead of hiding the controls.

I'm saying that GetClientRect followed by a call to TabCtrl_AdjustRect does not return the correct client area (or display area) when the tab control styles include both TCS_BUTTONS and TCS_VERTICAL.

Bob

And did you read my post? I'm saying that for me works correctly...so I guess you need calculate the buttons in the bottom by your self...I think is because the tab doesn't count in the RECT the bottom buttons tabs...I suppose that's why msdn says this:

Remarks

This message applies only to tab controls that are at the top. It does not apply to tab controls that are on the sides or bottom.