File:  [RetroPC.NET] / np2 / win9xc / dialog / d_about.cpp
Revision 1.1: download - view: text, annotated - select for diffs
Fri Oct 17 02:59:24 2003 JST (22 years ago) by yui
Branches: MAIN
CVS tags: HEAD
Initial revision

#include	"compiler.h"
#include	"resource.h"
#include	"np2.h"
#include	"dialog.h"
#include	"dialogs.h"
#include	"pccore.h"


static void about_init(HWND hWnd) {

	char	work[128];

	strcpy(work, "Neko Project II  ");
	strcat(work, np2version);
#ifdef NEW286
	strcat(work, "+");
#endif
	SetDlgItemText(hWnd, IDC_NP2VER, work);
	SetFocus(GetDlgItem(hWnd, IDOK));
}

LRESULT CALLBACK AboutDialogProc(HWND hWnd, UINT msg, WPARAM wp, LPARAM lp) {

	switch (msg) {
		case WM_INITDIALOG:
			about_init(hWnd);
			return(FALSE);

		case WM_COMMAND:
			switch (LOWORD(wp)) {
				case IDOK:
					EndDialog(hWnd, IDOK);
					break;

				default:
					return(FALSE);
			}
			break;

		case WM_CLOSE:
			PostMessage(hWnd, WM_COMMAND, IDOK, 0);
			break;

		default:
			return(FALSE);
	}
	return(TRUE);
}


RetroPC.NET-CVS <cvs@retropc.net>