📄 outputinfbar.cpp
字号:
// outputinfbar.cpp : implementation file
//
#include "stdafx.h"
#include "..\ToolSoftForPrint.h"
#include "outputinfbar.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// COutPutInfBar
COutPutInfBar::COutPutInfBar()
{
}
COutPutInfBar::~COutPutInfBar()
{
}
BEGIN_MESSAGE_MAP(COutPutInfBar, CToolBarCtrl)
//{{AFX_MSG_MAP(COutPutInfBar)
ON_WM_CREATE()
ON_WM_SIZE()
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// COutPutInfBar message handlers
int COutPutInfBar::OnCreate(LPCREATESTRUCT lpCreateStruct)
{
if (CToolBarCtrl::OnCreate(lpCreateStruct) == -1)
return -1;
if (this)
this->SetWindowText("设置窗口");
CRect rectDummy;
const DWORD dwViewStyle = LBS_NOINTEGRALHEIGHT | WS_CHILD | WS_VISIBLE | WS_HSCROLL | WS_VSCROLL;
rectDummy.SetRectEmpty ();
if (!m_wndTabs.Create (CBCGTabWnd::STYLE_FLAT_SHARED_HORZ_SCROLL, rectDummy, this, 1))
{
TRACE0("Failed to create output tab window\n");
return -1;
}
if(!m_wndInf.Create(IDD_OutPutInfo,&m_wndTabs))
{
TRACE0("Failed to create workspace view\n");
return -1; // fail to create
}
m_wndTabs.SetOwner(this);
m_wndTabs.ShowWindow(SW_SHOW);
// Attach tree windows to tab:
m_wndTabs.AddTab (&m_wndInf, _T("日志信息"), -1);
m_wndInf.SetOwner(this);
return 0;
}
void COutPutInfBar::OnSize(UINT nType, int cx, int cy)
{
CToolBarCtrl::OnSize(nType, cx, cy);
CRect rc;
GetClientRect(rc);
m_wndTabs.SetWindowPos(NULL, rc.left, rc.top, rc.Width(), rc.Height (), SWP_NOACTIVATE | SWP_NOZORDER | SWP_NOREDRAW);
// TODO: Add your message handler code here
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -