7 void CLogFrame::OnFinalMessage(HWND ) {
11 CLogFrame::~CLogFrame() {
20 int CLogFrame::OnCreate(LPCREATESTRUCT lpCreateStruct) {
21 m_hWndClient =
view.Create(m_hWnd, rcDefault);
23 SetWindowText(L
"Logbook");
30 void CLogFrame::OnDestroy() {
36 BOOL CLogFrame::PreTranslateMessage(MSG* pMsg) {
37 if(
view.PreTranslateMessage(pMsg))
40 return CFrameWindowImpl<CLogFrame>::PreTranslateMessage(pMsg);
43 void CLogFrame::AppendLogText(
const std::wstring& _text) {
45 view.GetSel(start, end);
46 view.AppendText(_text.c_str());
47 view.SetSel(start, end);
50 void CLogFrame::ReplaceLogText(
const std::wstring& _text) {
52 view.GetSel(start, end);
53 view.SetWindowText(_text.c_str());
55 view.SetSel(start, end);
59 std::wstring CLogFrame::GetLogText() {
60 std::size_t textlen =
view.GetWindowTextLength()+1;
61 std::vector<wchar_t> buffer(textlen, L
' ');
62 view.GetWindowText(buffer.data(), textlen);
63 return std::wstring(buffer.begin(), buffer.end()-1);
scope::ScopeLogger scope_logger
our ScopeLogger here
void DetachLogFrame()
Detaches a CLogFrame.
bool attached
are we attached to the DisplayController?
CLogView view
the view class inside the frame
This is the include file for standard system include files, or project specific include files that ar...
void AttachLogFrame(gui::CLogFrame *const _logframe)
Attaches a CLogFrame as the logbook window.