📄 bcgpsplitterwnd.cpp
字号:
//*******************************************************************************
// COPYRIGHT NOTES
// ---------------
// This is a part of the BCGControlBar Library
// Copyright (C) 1998-2000 BCGSoft Ltd.
// All rights reserved.
//
// This source code can be used, distributed or modified
// only under terms and conditions
// of the accompanying license agreement.
//*******************************************************************************
//
// BCGPSplitterWnd.cpp : implementation file
//
#include "stdafx.h"
#include "bcgcbpro.h"
#include "BCGPVisualManager.h"
#include "BCGPSplitterWnd.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CBCGPSplitterWnd
CBCGPSplitterWnd::CBCGPSplitterWnd()
{
}
CBCGPSplitterWnd::~CBCGPSplitterWnd()
{
}
BEGIN_MESSAGE_MAP(CBCGPSplitterWnd, CSplitterWnd)
//{{AFX_MSG_MAP(CBCGPSplitterWnd)
// NOTE - the ClassWizard will add and remove mapping macros here.
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CBCGPSplitterWnd message handlers
void CBCGPSplitterWnd::OnDrawSplitter (CDC* pDC, ESplitType nType,
const CRect& rectArg)
{
// if pDC == NULL, then just invalidate
if (pDC == NULL)
{
RedrawWindow(rectArg, NULL, RDW_INVALIDATE|RDW_NOCHILDREN);
return;
}
CRect rect = rectArg;
switch (nType)
{
case splitBorder:
CBCGPVisualManager::GetInstance ()->OnDrawSplitterBorder (pDC, this, rect);
return;
case splitBox:
CBCGPVisualManager::GetInstance ()->OnDrawSplitterBox (pDC, this, rect);
break;
case splitIntersection:
case splitBar:
break;
default:
ASSERT(FALSE); // unknown splitter type
}
// fill the middle
CBCGPVisualManager::GetInstance ()->OnFillSplitterBackground (pDC, this, rect);
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -