Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Can I Add a FrameWnd to TabCtrol?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Can I Add a FrameWnd to TabCtrol?

 Post Reply Post Reply
Author
Message
qinzhw View Drop Down
Newbie
Newbie


Joined: 25 November 2005
Location: Colombia
Status: Offline
Points: 16
Post Options Post Options   Thanks (0) Thanks(0)   Quote qinzhw Quote  Post ReplyReply Direct Link To This Post Topic: Can I Add a FrameWnd to TabCtrol?
    Posted: 28 November 2005 at 8:05am

Is it possible to add a FrameWnd to a CXTPTabControl created with WS_CHILD|WS_VISIBLE|WS_CLIPCHILDREN|WS_CLIPSIBLINGS?

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: 28 November 2005 at 1:40pm

yes.

grab some code in CXTPDockingPane::AttachView

Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
qinzhw View Drop Down
Newbie
Newbie


Joined: 25 November 2005
Location: Colombia
Status: Offline
Points: 16
Post Options Post Options   Thanks (0) Thanks(0)   Quote qinzhw Quote  Post ReplyReply Direct Link To This Post Posted: 28 November 2005 at 7:26pm

Sorry, but could you please show me an example ? Still take the CTabbedView class for example, how to change code in CTabbedView::AddView or ansy other place?

you know, writing a line AddView(RUNTIME_CLASS(CFameWnd),_T("FrameWndDemo"),IDX_SOME ICON) or  AddView(RUNTIME_CLASS(CWnd),_T("SimpleWndDemo "),IDX_OTHERICON) in CTabbedView::OnInitialUpdate() doesn't work.

How to use CXTPDockingPane::AttachView?  thank you very much ,oleg.

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: 29 November 2005 at 12:49am

See modified sample:

2005-11-29_004922_tv.zip

Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
qinzhw View Drop Down
Newbie
Newbie


Joined: 25 November 2005
Location: Colombia
Status: Offline
Points: 16
Post Options Post Options   Thanks (0) Thanks(0)   Quote qinzhw Quote  Post ReplyReply Direct Link To This Post Posted: 29 November 2005 at 6:29am
thank you,oleg
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.063 seconds.