|
|
| version 1.9, 2003/11/15 07:10:03 | version 1.12, 2003/12/08 06:24:03 |
|---|---|
| Line 1 | Line 1 |
| #include "compiler.h" | #include "compiler.h" |
| #include <time.h> | #include <time.h> |
| #ifndef __GNUC__ | |
| #include <winnls32.h> | #include <winnls32.h> |
| #endif | |
| #include "strres.h" | #include "strres.h" |
| #include "parts.h" | #include "parts.h" |
| #include "resource.h" | #include "resource.h" |
| Line 45 | Line 47 |
| #define STATSAVEMAX 10 | #define STATSAVEMAX 10 |
| static char np2help[] = "np2.hlp"; | static char np2help[] = "np2.hlp"; |
| static char np2resume[] = "sav"; | // static char np2resume[] = "sav"; |
| static const char szAppCaption[] = "Neko Project II - C version"; | #if defined(CPUCORE_IA32) |
| const char szAppCaption[] = "Neko Project II (IA-32)"; | |
| #else | |
| const char szAppCaption[] = "Neko Project II (C Version)"; | |
| #endif | |
| static const char szClassName[] = "NP2-MainWindow"; | static const char szClassName[] = "NP2-MainWindow"; |
| Line 133 LRESULT CALLBACK WndProc(HWND hWnd, UINT | Line 139 LRESULT CALLBACK WndProc(HWND hWnd, UINT |
| switch (msg) { | switch (msg) { |
| case WM_CREATE: | case WM_CREATE: |
| #ifndef __GNUC__ | |
| WINNLSEnableIME(hWnd, FALSE); | WINNLSEnableIME(hWnd, FALSE); |
| // DragAcceptFiles(hWnd, TRUE); | #endif |
| break; | break; |
| case WM_SYSCOMMAND: | case WM_SYSCOMMAND: |
| Line 802 int WINAPI WinMain(HINSTANCE hInstance, | Line 809 int WINAPI WinMain(HINSTANCE hInstance, |
| np2.hIcon = LoadIcon(hInstance, MAKEINTRESOURCE(IDI_ICON1)); | np2.hIcon = LoadIcon(hInstance, MAKEINTRESOURCE(IDI_ICON1)); |
| np2.hCursor = LoadCursor(NULL, IDC_ARROW); | np2.hCursor = LoadCursor(NULL, IDC_ARROW); |
| np2.hbrBackground = (HBRUSH)GetStockObject(BLACK_BRUSH); | np2.hbrBackground = (HBRUSH)GetStockObject(BLACK_BRUSH); |
| np2.lpszMenuName = MAKEINTRESOURCE(IDM_MAIN); | np2.lpszMenuName = MAKEINTRESOURCE(IDR_MAIN); |
| np2.lpszClassName = szClassName; | np2.lpszClassName = szClassName; |
| if (!RegisterClass(&np2)) { | if (!RegisterClass(&np2)) { |
| return(FALSE); | return(FALSE); |