开发者

How to resize a CTabCtrl to fit its contents

开发者 https://www.devze.com 2023-02-08 13:44 出处:网络
I have a CTabCtrl in my program and 3 \"child\" *CFormView*s that I show/hide whenever the user changes the active tab.

I have a CTabCtrl in my program and 3 "child" *CFormView*s that I show/hide whenever the user changes the active tab.

Instead of using a fixed size, I'd like to resize t开发者_开发问答he enclosing CTabCtrl to match the size of the largest CFormView.


You can use this:

GetDlgItem(IDC_YOURCONTROL)->MoveWindow(xPosInScreen, yPosInScreen, Width, Height);

Hope it helps.

0

精彩评论

暂无评论...
验证码 换一张
取 消