游戏帮助对话框回调函数

======================

wid
This commit is contained in:
Mr.Wid 2013-04-04 14:18:20 +08:00
parent 812eae05c7
commit aa76f5f92e
2 changed files with 32 additions and 0 deletions

22
HelpDialogProc.c Normal file
View File

@ -0,0 +1,22 @@
#include "HelpDialogProc.h"
//////////////////////////////////////////////////////////////////////////
BOOL CALLBACK HelpDlgProc( HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam )
{
switch( message )
{
case WM_INITDIALOG:
return TRUE;
case WM_COMMAND:
switch( LOWORD(wParam) )
{
case IDC_BTN_OK:
EndDialog( hDlg, 0 );
return TRUE;
}
break;
}
return FALSE;
}

10
HelpDialogProc.h Normal file
View File

@ -0,0 +1,10 @@
#pragma once
//////////////////////////////////////////////////////////////////////////
#include <windows.h>
#include "resource.h"
//////////////////////////////////////////////////////////////////////////
BOOL CALLBACK HelpDlgProc( HWND, UINT, WPARAM, LPARAM );