How to attach a formview to a pane? |
Post Reply |
Author | |
laughrain
Newbie Joined: 03 June 2004 Status: Offline Points: 4 |
Post Options
Thanks(0)
Posted: 03 June 2004 at 1:27am |
How to attach a formview(drived from CFormView) to a pane in SDI? thanks! |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
something like: CFrameWnd* pFrame = new CFrameWnd; CCreateContext context; pFrame->Create(NULL, NULL, WS_CHILD|WS_VISIBLE|WS_CLIPCHILDREN|WS_CLIPSIBLINGS, CRect(0, 0, 0, 0), this, NULL, 0, &context); pPane->Attach(pFrame);
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
laughrain
Newbie Joined: 03 June 2004 Status: Offline Points: 4 |
Post Options
Thanks(0)
|
yes, it works. but there is a new problem(MDI) how to get the pointer of the childframe view from the formview attached to the pane I want to execute public function of the childframe view in a public function of the formview attached to the pane. Have I made myself clear? my english isn't good. /////////////////////////////////////////////the code in formview(derived from cformview) CAcisViewerApp* pApp = (CAcisViewerApp*)::AfxGetApp();
///so I must include "AcisViewerView.h" and " MainFrm.h" but there are many errors...... Edited by laughrain |
|
laughrain
Newbie Joined: 03 June 2004 Status: Offline Points: 4 |
Post Options
Thanks(0)
|
ok,solved
|
|
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 |