CXTTablCtrl doesn't seem to send children WM_SIZE. |
Post Reply |
Author | |
ddlittle
Senior Member Joined: 19 February 2004 Location: United States Status: Offline Points: 132 |
Post Options
Thanks(0)
Posted: 13 August 2010 at 3:32pm |
I have a CXTTablCtrl in a CXTResizeDialog, and did SetResize(IDC_TAB,SZ_TOP_LEFT,SZ_BOTTOM_RIGHT); the tab control moves with the window borders as expected. The problem is that the children inside the tabs (via InsertItem()) are also CXTResizeDialogs, but they never, ever resize. They size exactly once, and that's when the window is created, because that's the only time they get a WM_SIZE message. I tried trapping OnSize() in the window that owns the tab and forwarding it to the children, but that didn't seem to work.
Any ideas? I looked at the TabCtrl sample, but it only have CView-based windows or a CListBox. Any ideas?
Thanks!
|
|
markr
Senior Member Joined: 01 August 2004 Status: Offline Points: 443 |
Post Options
Thanks(0)
|
I do this frequently, and have never had the problem you describe.
Are you creating the tab control explicitly, or through DDX? Can you show the code you use to associate the dialogs with the tab control? |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Guess you need AddControl instead of InsertItem...
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |