Print Page | Close Window

how to get view pointer from a pane

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Docking Pane
Forum Description: Topics Related to Codejock Docking Pane
URL: http://forum.codejock.com/forum_posts.asp?TID=17407
Printed Date: 29 March 2024 at 12:37am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: how to get view pointer from a pane
Posted By: xiangkong
Subject: how to get view pointer from a pane
Date 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!



Replies:
Posted By: Oleg
Date 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



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net