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
Printed Date: 20 August 2022 at 2:05am
Software Version: Web Wiz Forums 12.04 -

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!

Posted By: Oleg
Date Posted: 13 October 2010 at 1:11am

You can store pointer to view that return AttachView in members of your CMainFrame.

Oleg, Support Team

Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 -
Copyright ©2001-2021 Web Wiz Ltd. -