Why can't get the control in CView? |
Post Reply |
Author | |
sevcolor
Newbie Joined: 21 May 2006 Status: Offline Points: 7 |
Post Options
Thanks(0)
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;
} |
|
sevcolor
Newbie Joined: 21 May 2006 Status: Offline Points: 7 |
Post Options
Thanks(0)
|
I have resolved it. Thanks.
|
|
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 |