Attaching CFormView to dockpane problems! |
Post Reply |
Author | |
xred
Groupie Joined: 24 August 2004 Location: China Status: Offline Points: 28 |
Post Options
Thanks(0)
Posted: 13 September 2004 at 3:41am |
I want to attach CFormView to a dockpane,the below are the codes: //////////////////////////////////////////////////////////// //////////////////////////////////////// LRESULT CMainFrame::OnDockingPaneNotify(WPARAM wParam, LPARAM lParam) pFrame->Create(NULL, NULL, WS_CHILD|WS_VISIBLE|WS_CLIPCHILDREN|WS_CLIPSIBLINGS, CRect(0, 0, 0, 0), this, NULL, 0, &context); //////////////////////////////////////////////////////////// //////////////////////////////////////// ///// CSetLineView inherits from CFormView,however it generates an assert! Edited by xred |
|
xred
Groupie Joined: 24 August 2004 Location: China Status: Offline Points: 28 |
Post Options
Thanks(0)
|
Anybody do me a favor? |
|
leolea
Newbie Joined: 15 September 2004 Status: Offline Points: 1 |
Post Options
Thanks(0)
|
try the simple way:
case 2: { pPane.AttachView(this,RUNTIME_CLASS(CMenuForm),0); break; } Edited by leolea |
|
xred
Groupie Joined: 24 August 2004 Location: China Status: Offline Points: 28 |
Post Options
Thanks(0)
|
Aha,I found why it didn't work! The reason was that I didn't set the dialog's style to "Child"! leolea,thank you all the same! |
|
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 |