If so:
CTabCtrl m _ TC
Then add the following in OnSize ():
CRect rt
GetWindowRect(& amp; rt);
screento client(& amp; rt);
Adjust the control position here, for example:
rt.SetRect(rt.left+2,rt.top+2,rt.right-2,rt . bottom-2);
Then m _ tc.setwindowrect (&; rt); It doesn't matter.