📄 nomenutoolbar.cpp
字号:
// NoMenuToolBar.cpp : implementation file
//
#include "stdafx.h"
#include "FlashPlay.h"
#include "NoMenuToolBar.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CNoMenuToolBar
CNoMenuToolBar::CNoMenuToolBar()
{
}
CNoMenuToolBar::~CNoMenuToolBar()
{
}
BEGIN_MESSAGE_MAP(CNoMenuToolBar, CToolBar)
//{{AFX_MSG_MAP(CNoMenuToolBar)
ON_WM_SIZE()
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CNoMenuToolBar message handlers
void CNoMenuToolBar::OnSize(UINT nType, int cx, int cy)
{
CToolBar::OnSize(nType, cx, cy);
// TODO: Add your message handler code here
// remove the close button on the parent
CWnd *pParent = GetParent();
if(pParent) pParent = pParent->GetParent();
if(pParent != NULL && pParent->GetRuntimeClass() == RUNTIME_CLASS(CMiniDockFrameWnd)
&& pParent->GetStyle() & WS_SYSMENU)
{
pParent->ModifyStyle(WS_SYSMENU, 0, 0);
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -