-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathOutputWnd.cpp
More file actions
117 lines (90 loc) · 2.26 KB
/
OutputWnd.cpp
File metadata and controls
117 lines (90 loc) · 2.26 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
#include "stdafx.h"
#include "OutputWnd.h"
#include "Resource.h"
#include "MainFrm.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// COutputBar
COutputWnd::COutputWnd()
{
}
COutputWnd::~COutputWnd()
{
}
BEGIN_MESSAGE_MAP(COutputWnd, CDockablePane)
ON_WM_CREATE()
ON_WM_SIZE()
END_MESSAGE_MAP()
int COutputWnd::OnCreate(LPCREATESTRUCT lpCreateStruct)
{
if (CDockablePane::OnCreate(lpCreateStruct) == -1)
return -1;
return 0;
}
void COutputWnd::OnSize(UINT nType, int cx, int cy)
{
CDockablePane::OnSize(nType, cx, cy);
}
void COutputWnd::AdjustHorzScroll(CListBox& wndListBox)
{
}
void COutputWnd::FillBuildWindow()
{
m_wndOutputBuild.AddString(_T("生成输出正显示在此处。"));
m_wndOutputBuild.AddString(_T("输出正显示在列表视图的行中"));
m_wndOutputBuild.AddString(_T("但您可以根据需要更改其显示方式..."));
}
void COutputWnd::FillDebugWindow()
{
m_wndOutputDebug.AddString(_T("调试输出正显示在此处。"));
m_wndOutputDebug.AddString(_T("输出正显示在列表视图的行中"));
m_wndOutputDebug.AddString(_T("但您可以根据需要更改其显示方式..."));
}
void COutputWnd::FillFindWindow()
{
m_wndOutputFind.AddString(_T("查找输出正显示在此处。"));
m_wndOutputFind.AddString(_T("输出正显示在列表视图的行中"));
m_wndOutputFind.AddString(_T("但您可以根据需要更改其显示方式..."));
}
void COutputWnd::UpdateFonts()
{
}
COutputList::COutputList()
{
}
COutputList::~COutputList()
{
}
BEGIN_MESSAGE_MAP(COutputList, CListBox)
ON_WM_CONTEXTMENU()
ON_COMMAND(ID_EDIT_COPY, OnEditCopy)
ON_COMMAND(ID_EDIT_CLEAR, OnEditClear)
ON_COMMAND(ID_VIEW_OUTPUTWND, OnViewOutput)
ON_WM_WINDOWPOSCHANGING()
END_MESSAGE_MAP()
void COutputList::OnContextMenu(CWnd* /*pWnd*/, CPoint point)
{
}
void COutputList::OnEditCopy()
{
MessageBox(_T("复制输出"));
}
void COutputList::OnEditClear()
{
MessageBox(_T("清除输出"));
}
void COutputList::OnViewOutput()
{
CDockablePane* pParentBar = DYNAMIC_DOWNCAST(CDockablePane, GetOwner());
CMDIFrameWndEx* pMainFrame = DYNAMIC_DOWNCAST(CMDIFrameWndEx, GetTopLevelFrame());
if (pMainFrame != NULL && pParentBar != NULL)
{
pMainFrame->SetFocus();
pMainFrame->ShowPane(pParentBar, FALSE, FALSE, FALSE);
pMainFrame->RecalcLayout();
}
}