Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Size Problem when using CXTTabControl
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Size Problem when using CXTTabControl

 Post Reply Post Reply
Author
Message
czlai View Drop Down
Groupie
Groupie
Avatar

Joined: 18 December 2006
Location: Taiwan
Status: Offline
Points: 35
Post Options Post Options   Thanks (0) Thanks(0)   Quote czlai Quote  Post ReplyReply Direct Link To This Post Topic: Size Problem when using CXTTabControl
    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.
Back to Top
Oleg View Drop Down
Senior Member
Senior Member


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.047 seconds.