Print Page | Close Window

Size Problem when using CXTTabControl

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=5911
Printed Date: 12 November 2025 at 1:21am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Size Problem when using CXTTabControl
Posted By: czlai
Subject: Size Problem when using CXTTabControl
Date Posted: 26 December 2006 at 4:58am
Hi,
I Have a main dialog with a CXTTabControl inside, and two child dialog was created to be tab pages, like this...
 
 m_pageField.Create(IDD_DIALOG_FIELD, &m_wndTabControl);
 m_pageSymbol.Create(IDD_DIALOG_SYMBOL, &m_wndTabControl);
 m_wndTabControl.InsertItem(0, _T("Fields"), m_pageField, 0);
 m_wndTabControl.InsertItem(1, _T("Symbols"), m_pageSymbol, 1);
I call m_wndTabControl.MoveWindow() in main dialog's OnSize.
 
The problem is, when the program start up, the TabControl is in right place and right size, but the two child dialog has wrong size, until I resize the main dialog.
 
What I missing ?
Thanks for answer.



Replies:
Posted By: Oleg
Date Posted: 26 December 2006 at 3:43pm
Hi,
guess OnSize called before you inserted pages. Call MoveWindow also after you created them.


-------------
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