⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 cpasseckdialog.cpp

📁 这是一本学习 window编程的很好的参考教材
💻 CPP
字号:
// PasseckDialog.cpp

#include "stdafx.h"
#include "PasseckDialog.h"

void CPasseckDialog::AddDialog(CDialog* pDialog, UINT nID, LPCTSTR lpszWindowName)
{
	CRect rect(0, 0, 231, 304);
	CreateEx(	0,
				AfxRegisterWndClass(0),
				lpszWindowName,
				WS_POPUP | WS_SYSMENU | WS_MINIMIZEBOX,
				rect,
				NULL,
				NULL,
				NULL );

	pDialog->Create(nID, this);
	pDialog->ShowWindow(SW_SHOW);
	pDialog->UpdateWindow();
	pDialog->GetWindowRect(&rect);
	rect.bottom -= 2;
	rect.right -= 2;

	MoveWindow(&rect, TRUE);
	CenterWindow();

	ShowWindow(SW_SHOW);
	UpdateWindow();
}

#pragma comment( exestr, "IEAssistant")

⌨️ 快捷键说明

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