![]() |
Size Problem when using CXTTabControl |
Post Reply
|
| Author | |
czlai
Groupie
Joined: 18 December 2006 Location: Taiwan Status: Offline Points: 35 |
Post Options
Thanks(0)
Quote Reply
Topic: Size Problem when using CXTTabControlPosted: 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.
|
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
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 |
|
![]() |
|
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 |