1 ///////////////////////////////////////////////////
\r
2 // Output.cpp - Definitions for the CViewOutput, CContainOutput
\r
3 // and CDockOutput classes
\r
7 #include "ContainerApp.h"
\r
9 #include "resource.h"
\r
12 ///////////////////////////////////////////////
\r
13 // CViewOutput functions
\r
14 CViewOutput::CViewOutput()
\r
16 m_hRichEdit = ::LoadLibrary(_T("Riched20.dll")); // RichEdit ver 2.0
\r
19 ::MessageBox(NULL,_T("CRichView::CRichView Failed to load Riched20.dll"), _T(""), MB_ICONWARNING);
\r
23 CViewOutput::~CViewOutput(void)
\r
26 ::FreeLibrary(m_hRichEdit);
\r
29 void CViewOutput::OnInitialUpdate()
\r
31 SetWindowText(_T("Output Window"));
\r
34 void CViewOutput::PreCreate(CREATESTRUCT &cs)
\r
36 cs.style = ES_AUTOHSCROLL | ES_AUTOVSCROLL | ES_MULTILINE | WS_CHILD |
\r
37 WS_CLIPCHILDREN | WS_HSCROLL | WS_VISIBLE | WS_VSCROLL;
\r
39 cs.lpszClass = RICHEDIT_CLASS; // RichEdit ver 2.0
\r
43 //////////////////////////////////////////////
\r
44 // Definitions for the CDockOutput class
\r
45 CDockOutput::CDockOutput()
\r
47 // Set the view window to our edit control
\r
51 void CDockOutput::OnInitialUpdate()
\r
53 // Set the width of the splitter bar
\r