Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Docking Pane
  New Posts New Posts RSS Feed - how to get view pointer from a pane
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

how to get view pointer from a pane

 Post Reply Post Reply
Author
Message
xiangkong View Drop Down
Newbie
Newbie
Avatar

Joined: 01 June 2010
Location: China
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote xiangkong Quote  Post ReplyReply Direct Link To This Post Topic: how to get view pointer from a pane
    Posted: 12 October 2010 at 3:36am
There is an formview in the pane. With DYNAMIC_DOWNCAST(CView, pane->AttachView(this,RUNTIME_CLASS(CView)), I dynamically create a view and attach to the pane. When  a image is drawn in the formview, ReDrawPane() is used  to update the image . But it does't work. Would anyone kown why and how to slove this problem?
I try to get the view pointer from the pane and  update the image by updating the view. How can I get the view pointer from the pane? Does anyone can help me? Thank you!
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


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: 13 October 2010 at 1:11am
Hi,

You can store pointer to view that return AttachView in members of your CMainFrame.
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.156 seconds.