Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Docking Pane
  New Posts New Posts RSS Feed - how to generate pane dynamically
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

how to generate pane dynamically

 Post Reply Post Reply
Author
Message
yangyanhui View Drop Down
Senior Member
Senior Member


Joined: 20 August 2020
Status: Offline
Points: 131
Post Options Post Options   Thanks (0) Thanks(0)   Quote yangyanhui Quote  Post ReplyReply Direct Link To This Post Topic: how to generate pane dynamically
    Posted: 01 August 2021 at 9:29pm
Hi,I need to generate panes dynamically. If I need 10 panes,I should create 10 windows.I do not know how much panes I need before.How can I realize it?
thanks
liuyi
Back to Top
markr View Drop Down
Senior Member
Senior Member


Joined: 01 August 2004
Status: Offline
Points: 441
Post Options Post Options   Thanks (0) Thanks(0)   Quote markr Quote  Post ReplyReply Direct Link To This Post Posted: 02 August 2021 at 9:01pm
Recommend reviewing the DynamicPanes sample source code.
Back to Top
yangyanhui View Drop Down
Senior Member
Senior Member


Joined: 20 August 2020
Status: Offline
Points: 131
Post Options Post Options   Thanks (0) Thanks(0)   Quote yangyanhui Quote  Post ReplyReply Direct Link To This Post Posted: 06 August 2021 at 2:02am
I have reviewed the sample code.The sample code works good. but when I copied the code into my project,when I call GetActiveView(),it returns null.So I fail to create pane.My project is MFC SPI. What may be the problem?thanks.

CView *pView = GetActiveView(); pView is null
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.156 seconds.