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

📄 aboutdlg.cpp

📁 使非MFC窗口程序的窗口回调过程成为C++类的成员函数。
💻 CPP
字号:
#include "stdafx.h"
#include "dialog.h"
#include "aboutdlg.h"



CAboutDlg::CAboutDlg()
{
}


CAboutDlg::~CAboutDlg()
{
}


void CAboutDlg::SetTemplateID()
{
	m_uIDTemplate = IDD;
}


LRESULT CALLBACK CAboutDlg::WndProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
{
	return CDialog::WndProc(hwnd, uMsg, wParam, lParam);
}


//HANDLE_WM_INITDIALOG
bool CAboutDlg::OnInitDialog(HWND hwnd, HWND hwndFocus, LPARAM lParam)
{
	CDialog::OnInitDialog(hwnd, hwndFocus, lParam);

	TCHAR	szTitle1[80];
	TCHAR	szTitle2[80];

	LoadString(g_hInstance, IDS_ABOUT, szTitle1, 80);
	LoadString(g_hInstance, IDS_MAINFRAME, szTitle2, 80);
	_tcscat(szTitle1, szTitle2);
	SetTitle(szTitle1);
	return true;
}

⌨️ 快捷键说明

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