Print Page | Close Window

Why can't get the control in CView?

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=4611
Printed Date: 29 April 2024 at 2:49am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Why can't get the control in CView?
Posted By: sevcolor
Subject: Why can't get the control in CView?
Date Posted: 18 July 2006 at 9:59pm
I create a docking pane attaching CPaneData(CWnd),I want to communite betwen it and CView,I'm trying to get the control m_Edit in CView,but failed.Can anyone help me?Thanks a lot!
Here is the code:
 
void CPaneData::OnClickTree(NMHDR* pNMHDR, LRESULT* pResult)
{
    ……

     CMyDemo1View* pView=(CMyDemo1View*)GetDescendantWindow  (AFX_IDW_PANE_FIRST);
  
  pView->m_Edit.SetWindowText("Hi,I'm CEdit");

 }
 
 *pResult = 0;
}
 



Replies:
Posted By: sevcolor
Date Posted: 20 July 2006 at 10:48pm
I have resolved it. Thanks.



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