Print Page | Close Window

CXTTablCtrl doesn't seem to send children WM_SIZE.

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Visual C++ MFC
Forum Description: Topics related to Codejock Visual C++ MFC products
URL: http://forum.codejock.com/forum_posts.asp?TID=17109
Printed Date: 23 November 2024 at 4:34am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: CXTTablCtrl doesn't seem to send children WM_SIZE.
Posted By: ddlittle
Subject: CXTTablCtrl doesn't seem to send children WM_SIZE.
Date 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!
 



Replies:
Posted By: markr
Date Posted: 20 August 2010 at 10:33am
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?


Posted By: Oleg
Date Posted: 20 August 2010 at 1:11pm
Guess you need AddControl instead of InsertItem...

-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net