Commit before breaking everything
[matches/honours.git] / research / transmission_spectroscopy / TOF / Win32++ / samples / Splitter / src / SplitterPanes.cpp
1 //////////////////////////////////////////////\r
2 // SplitterPanes.cpp\r
3 \r
4 #include "stdafx.h"\r
5 #include "SplitterApp.h"\r
6 #include "Mainfrm.h"\r
7 #include "SplitterPanes.h"\r
8 \r
9 \r
10 CDockSimple::CDockSimple() \r
11 {\r
12         SetView(m_View);\r
13 }\r
14 \r
15 void CDockSimple::OnInitialUpdate()\r
16 {\r
17 }\r
18 \r
19 CDockText::CDockText() \r
20 {\r
21         SetView(m_View);\r
22 }\r
23 \r
24 void CDockText::OnInitialUpdate()\r
25 {\r
26         // Set the width of the splitter bar\r
27         SetBarWidth(6);\r
28 }\r
29 \r
30 \r
31 CDockTree::CDockTree() \r
32 {\r
33         SetView(m_View);\r
34 }\r
35 \r
36 void CDockTree::OnInitialUpdate() \r
37 {\r
38         // Set the width of the splitter bar\r
39         SetBarWidth(12);\r
40 \r
41         // Set the color of the splitter bar\r
42         CMainFrame& MainFrame = GetSplitApp().GetMainFrame();\r
43         CReBar& RB = MainFrame.GetReBar();\r
44         if (RB.GetReBarTheme().UseThemes && RB.GetReBarTheme().clrBkgnd1 != 0)\r
45                 SetBarColor(RB.GetReBarTheme().clrBkgnd1);\r
46         else\r
47                 SetBarColor(GetSysColor(COLOR_BTNFACE)); \r
48 }\r
49 \r
50 CDockList::CDockList() \r
51 {\r
52         SetView(m_View);\r
53 }\r
54 \r
55 void CDockList::OnInitialUpdate()\r
56 {\r
57         // Set the width of the splitter bar\r
58         SetBarWidth(6);\r
59 }\r
60 \r

UCC git Repository :: git.ucc.asn.au