Originally Posted by
Magos
EDIT: Or at least the proper tab-control client rectangle (excluding the tabs and frame).
You're in luck, I think.
A little program I started last week required the use of tabs and some controls "inside" their pages. Initially I placed an edit control within the confines of the page (excluding tabs and frame) using the following:-
Code:
RECT rc;
rc.left = rc.top = 0;
rc.right = LOWORD(lParam); // client width (This is from a WM_SIZE message)
rc.bottom = HIWORD(lParam); // client height
SendMessage(g_hwndTab, TCM_ADJUSTRECT, FALSE, (LPARAM)&rc); // tab control corrects
I hope that's what you wanted.