how to get view pointer from a pane |
Post Reply |
Author | |
xiangkong
Newbie Joined: 01 June 2010 Location: China Status: Offline Points: 2 |
Post Options
Thanks(0)
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!
|
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hi,
You can store pointer to view that return AttachView in members of your CMainFrame.
|
|
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 |