Print Page | Close Window

Adding a view to a Child frame

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: General Discussion
Forum Description: Topics Related to Visual C++ MFC Development in General
Printed Date: 01 October 2020 at 8:20am

Topic: Adding a view to a Child frame
Posted By: jdugan
Subject: Adding a view to a Child frame
Date Posted: 19 March 2015 at 8:26pm
I have an application that uses codejock and has a child frame with 2 toolbars at the top of the frame.
Then under those two toolbars is another toolbar control that is docked to the left.
Our current implementation then takes the rectangle area left over to the lower right quadrant and uses a CRect and open gl to display data in a scatter plot.
I am trying to use the RadarAreaView example CView object and add it to the ChildFrame where the open gl display used to reside.
I am having no luck in trying to use AddView to the document and I've been researching and looking for a way to add it to that frame with no luck.
How does one add a CView object like Radar Area view to the child frame.
There is a docking pane and I've looked for ways to add it that way, but, with no success.
Any suggestions or a pointer to some sample code would be great.



Print Page | Close Window