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

📄 aboutdlg.c

📁 Virtual Floppy Driver
💻 C
字号:
/*
	aboutdlg.c

	Virtual Floppy Disk drive control panel
    Copyright (C) 2003 Kenji Kato
*/

#include "sysincl.h"
#include "vfdutil.h"
#include "vfdwin.h"
#include "resource.h"

//
//	local functions
//
static void OnAboutInitDialog(HWND hDlg);

//
//	About dialog message dispatcher
//
BOOL CALLBACK AboutProc(
	HWND hDlg,
	UINT msg,
	WPARAM wParam,
	LPARAM lParam) 
{ 
	UNREFERENCED_PARAMETER(wParam);
	UNREFERENCED_PARAMETER(lParam);

    switch (msg) {
	case WM_INITDIALOG:
		OnAboutInitDialog(hDlg);
		break;
    } 

    return 0; 
}

//
//	initialize about tab dialog
//
void OnAboutInitDialog(HWND hDlg)
{
	char buf[1024];
	DWORD ret;

	// load usage explanation text

	if (!LoadString(hAppInstance, IDS_ABOUT_USAGE, buf, sizeof(buf))) {
		ret = GetLastError();

		DEBUG_TRACE1("AboutProc : LoadString(IDS_ABOUT_USAGE) - %s", ErrMsg(ret));
		ShowErrorMessage(ret, IDS_ERR_APP_INIT);
		return;
	}

	//	show usage explanation text

	if (!SetDlgItemText(hDlg, IDC_ABOUT_USAGE, buf)) {
		ret = GetLastError();

		DEBUG_TRACE1("AboutProc : SetDlgItemText(IDC_ABOUT_USAGE) - %s", ErrMsg(ret));

		ShowErrorMessage(ret, IDS_ERR_APP_INIT);
	}

	return;
}

//	End Of File

⌨️ 快捷键说明

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