Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Docking Pane
  New Posts New Posts RSS Feed - Why can't get the control in CView?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Why can't get the control in CView?

 Post Reply Post Reply
Author
Message
sevcolor View Drop Down
Newbie
Newbie


Joined: 21 May 2006
Status: Offline
Points: 7
Post Options Post Options   Thanks (0) Thanks(0)   Quote sevcolor Quote  Post ReplyReply Direct Link To This Post Topic: Why can't get the control in CView?
    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;
}
 
Back to Top
sevcolor View Drop Down
Newbie
Newbie


Joined: 21 May 2006
Status: Offline
Points: 7
Post Options Post Options   Thanks (0) Thanks(0)   Quote sevcolor Quote  Post ReplyReply Direct Link To This Post Posted: 20 July 2006 at 10:48pm
I have resolved it. Thanks.
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.