ncdialogbar.cpp

来自「用VC++开发了一个数控加工的三维仿真程序」· C++ 代码 · 共 43 行

CPP
43
字号
// NCDialogBar.cpp : 实现文件
//

#include "stdafx.h"
#include "NCSimulaSys.h"
#include "NCDialogBar.h"


// CNCDialogBar

IMPLEMENT_DYNAMIC(CNCDialogBar, CBCGPDialogBar)

CNCDialogBar::CNCDialogBar()
{

}

CNCDialogBar::~CNCDialogBar()
{
}


BEGIN_MESSAGE_MAP(CNCDialogBar, CBCGPDialogBar)
	ON_WM_CREATE()
	ON_WM_SIZE()
END_MESSAGE_MAP()



// CNCDialogBar 消息处理程序



void CNCDialogBar::OnSize(UINT nType, int cx, int cy)
{
	__super::OnSize(nType, cx, cy);

	// TODO: 在此处添加消息处理程序代码
	CWnd *pWnd = GetDlgItem(IDC_VIEWER);
	if(pWnd != NULL)
		pWnd->MoveWindow(0,0,cx,cy);
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?