1 /////////////////////////////////////////////
\r
5 #include "DockingApp.h"
\r
10 //////////////////////////////////////////////
\r
11 // Definitions for the CDockSimple class
\r
12 CDockSimple::CDockSimple()
\r
14 // Set the view window to our edit control
\r
18 CDocker* CDockSimple::NewDockerFromID(int nID)
\r
20 CDocker* pDock = NULL;
\r
23 case ID_DOCK_CLASSES1:
\r
24 pDock = new CDockClasses;
\r
26 case ID_DOCK_CLASSES2:
\r
27 pDock = new CDockClasses;
\r
29 case ID_DOCK_FILES1:
\r
30 pDock = new CDockFiles;
\r
32 case ID_DOCK_FILES2:
\r
33 pDock = new CDockFiles;
\r
35 case ID_DOCK_SIMPLE1:
\r
36 pDock = new CDockSimple;
\r
38 case ID_DOCK_SIMPLE2:
\r
39 pDock = new CDockSimple;
\r
42 pDock = new CDockText;
\r
45 pDock = new CDockText;
\r
48 TRACE(_T("Unknown Dock ID\n"));
\r
55 void CDockSimple::OnInitialUpdate()
\r
57 // Set the width of the splitter bar
\r
60 SetCaption (_T("Simple View - Docking"));
\r
64 //////////////////////////////////////////////
\r
65 // Definitions for the CDockText class
\r
66 CDockText::CDockText()
\r
68 // Set the view window to our edit control
\r
72 void CDockText::OnInitialUpdate()
\r
74 // Set the width of the splitter bar
\r
77 SetCaption (_T("Text View - Docking"));
\r
82 //////////////////////////////////////////////
\r
83 // Definitions for the CDockClasses class
\r
84 CDockClasses::CDockClasses()
\r
86 // Set the view window to our edit control
\r
90 void CDockClasses::OnInitialUpdate()
\r
92 // Set the width of the splitter bar
\r
95 SetCaption (_T("Class View - Docking"));
\r
99 //////////////////////////////////////////////
\r
100 // Definitions for the CDockFiles class
\r
101 CDockFiles::CDockFiles()
\r
103 // Set the view window to our edit control
\r
107 void CDockFiles::OnInitialUpdate()
\r
109 // Set the width of the splitter bar
\r
112 SetCaption (_T("Files View - Docking"));
\r