stdafx.cpp
来自「编程实例」· C++ 代码 · 共 27 行
CPP
27 行
// stdafx.cpp : source file that includes just the standard includes
// myUI.pch will be the pre-compiled header
// stdafx.obj will contain the pre-compiled type information
#include "stdafx.h"
void EkDockBarNextTo(CControlBar* pNewBar, CControlBar* pDockedBar,
UINT nDockBarID)
{
//将要停靠的框架
CFrameWnd* pFrame = pDockedBar->GetDockingFrame();
//计算停靠控制条的位置
pFrame->RecalcLayout();
//计算已经停靠的工具栏的矩形
CRect rect;
pDockedBar->GetWindowRect(&rect);
//停靠新的工具栏条
rect.OffsetRect(1,1);
pFrame->DockControlBar(pNewBar, nDockBarID, &rect);
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?