CDockablePane, Doc-View, Drawing and Updating w/ MFC 2008

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
We are starting a new project using VC++ 2008 and MFC with the VS style.  I want to use the doc-view structure, but i also want to use the CDockablePane like the starting apps give you with appwizard.  Fundamentally, i want to include one or more views that use OpenGL in a CView-derived view so it can get updates based on the Doc and other views.  I dont see a connection between CDockablePane and CView.  Can I easily put a CView in a CDockablePane and get the OnDraw events or use OpenGL in it, and at the same time make it Dockable using CDockablePane?  Is there a preferred way to do this?  Or should i just force the OpenGL and other rendering in the CDockablePane itself and roll my own updating?  Whats the best approach to have UpdateAllViews style management, drawing control (CDC/OpenGL) and Docking all at the same time?
<p align=left> 
<p align=left>TIA,
<p align=left> 
<p align=left>Bob
<p align=left><font face=Arial size=2></font> 

View the full article
 
Back
Top