You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
46 lines
938 B
C++
46 lines
938 B
C++
|
|
#include "stdafx.h"
|
|
#include "LaiPuLaser.h"
|
|
#include "PaneDialogTmp.h"
|
|
|
|
IMPLEMENT_DYNAMIC(CPaneDialogTmp, CDockablePane)
|
|
BEGIN_MESSAGE_MAP(CPaneDialogTmp, CDockablePane)
|
|
ON_WM_CREATE()
|
|
ON_WM_SIZE()
|
|
END_MESSAGE_MAP()
|
|
|
|
CPaneDialogTmp::CPaneDialogTmp()
|
|
{
|
|
|
|
}
|
|
|
|
CPaneDialogTmp::~CPaneDialogTmp()
|
|
{
|
|
}
|
|
// CPaneStdMarkCtrl 消息处理程序
|
|
int CPaneDialogTmp::OnCreate(LPCREATESTRUCT lpCreateStruct)
|
|
{
|
|
if (CDockablePane::OnCreate(lpCreateStruct) == -1)
|
|
return -1;
|
|
|
|
CRect rectDummy;
|
|
rectDummy.SetRectEmpty();
|
|
// 创建选项卡窗口:
|
|
if(!m_Dlg->Create(m_Dlg->GetIDD(),this))
|
|
{
|
|
return -1; // 未能创建
|
|
}
|
|
m_Dlg->ShowWindow(SW_SHOW);
|
|
return 0;
|
|
}
|
|
|
|
void CPaneDialogTmp::OnSize(UINT nType, int cx, int cy)
|
|
{
|
|
CDockablePane::OnSize(nType, cx, cy);
|
|
|
|
// 选项卡控件应覆盖整个工作区
|
|
m_Dlg->SetWindowPos (this, -1, -1, cx, cy, SWP_NOACTIVATE | SWP_NOZORDER);
|
|
m_Dlg->ShowWindow(SW_SHOW);
|
|
}
|
|
|