Scope
LogFrame.h
1 #pragma once
2 
3 #include "../controllers/ScopeLogger.h"
4 #include "LogView.h"
5 
6 namespace scope {
7  namespace gui {
8 
10 class CLogFrame
11  : public CFrameWindowImpl<CLogFrame> {
12 
13 protected:
16 
19 
21  bool attached;
22 
24  CFont font;
25 
26 public:
27  DECLARE_FRAME_WND_CLASS(NULL, IDR_LOGBOOK)
28 
29  ~CLogFrame();
30 
31  BEGIN_MSG_MAP(CLogFrame)
32  MSG_WM_CREATE(OnCreate)
33  MSG_WM_DESTROY(OnDestroy)
34  CHAIN_MSG_MAP(CFrameWindowImpl<CLogFrame>)
35  CHAIN_CLIENT_COMMANDS()
36  END_MSG_MAP()
37 
40  virtual void OnFinalMessage(HWND /*hWnd*/);
41  int OnCreate(LPCREATESTRUCT lpCreateStruct);
42  void OnDestroy();
43  BOOL PreTranslateMessage(MSG* pMsg);
48  void AppendLogText(const std::wstring& _text);
49  void ReplaceLogText(const std::wstring& _text);
50  std::wstring GetLogText();
52 };
53 
54 }}
55 
scope::ScopeLogger scope_logger
our ScopeLogger here
Definition: LogFrame.h:15
CFont font
font for use inside the CLogView
Definition: LogFrame.h:24
STL namespace.
View class for the log.
Definition: LogView.h:13
bool attached
are we attached to the DisplayController?
Definition: LogFrame.h:21
CLogView view
the view class inside the frame
Definition: LogFrame.h:18
A logger class to log various messages and user comments.
Definition: ScopeLogger.h:24
Frame window class for the log.
Definition: LogFrame.h:10