📄 about.cpp
字号:
/*****************************************************************
|
| Xaudio Player for Windows CE
|
| (c) 1996-1998 MpegTV, LLC
| Author: Gilles Boccon-Gibod (gilles@mpegtv.com)
|
****************************************************************/
/*----------------------------------------------------------------------
| includes
+---------------------------------------------------------------------*/
#ifndef STRICT
#define STRICT
#endif
#include <windows.h>
#include <commctrl.h>
#include "ceutils.h"
#include "xaplayer.h"
#include "about.h"
/*----------------------------------------------------------------------
| AboutDialogProc
+---------------------------------------------------------------------*/
static BOOL CALLBACK
AboutDialogProc(HWND window, UINT message,
WPARAM wparam, LPARAM lparam)
{
switch (message) {
case WM_INITDIALOG: {
HWND label;
TCHAR text[256];
swprintf(text, TEXT("Xaudio Sample Player\n(c) 1996-1998 MpegTV, LLC\nVersion %d.%d.%d"),
XA_PLAYER_MAJOR_VERSION,
XA_PLAYER_MINOR_VERSION,
XA_PLAYER_REVISION);
label = GetDlgItem(window, IDC_ABOUT_LABEL);
SetWindowText(label, text);
}
break;
case WM_COMMAND:
switch (LOWORD(wparam)) {
case IDOK:
case IDCANCEL:
EndDialog(window, 0);
break;
}
}
return FALSE;
}
/*----------------------------------------------------------------------
| ShowAboutDialog
+---------------------------------------------------------------------*/
void
ShowAboutDialog(HINSTANCE instance, HWND parent)
{
DialogBox(instance,
ID(IDD_ABOUT_DIALOG),
parent,
AboutDialogProc);
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -