|
|
| version 1.59, 2005/03/19 18:54:58 | version 1.61, 2005/03/20 13:12:49 |
|---|---|
| Line 291 static int flagload(const OEMCHAR *ext, | Line 291 static int flagload(const OEMCHAR *ext, |
| id = IDYES; | id = IDYES; |
| ret = statsave_check(path, buf, NELEMENTS(buf)); | ret = statsave_check(path, buf, NELEMENTS(buf)); |
| if (ret & (~STATFLAG_DISKCHG)) { | if (ret & (~STATFLAG_DISKCHG)) { |
| MessageBox(hWndMain, OEMTEXT("Couldn't restart"), title, MB_OK | MB_ICONSTOP); | MessageBox(hWndMain, _T("Couldn't restart"), title, |
| MB_OK | MB_ICONSTOP); | |
| id = IDNO; | id = IDNO; |
| } | } |
| else if ((!force) && (ret & STATFLAG_DISKCHG)) { | else if ((!force) && (ret & STATFLAG_DISKCHG)) { |
| Line 1080 LRESULT CALLBACK WndProc(HWND hWnd, UINT | Line 1081 LRESULT CALLBACK WndProc(HWND hWnd, UINT |
| GetClientRect(hWnd, &rect); | GetClientRect(hWnd, &rect); |
| width = rect.right - rect.left; | width = rect.right - rect.left; |
| height = rect.bottom - rect.top; | height = rect.bottom - rect.top; |
| hbmp = LoadBitmap(hinst, OEMTEXT("NP2BMP")); | hbmp = LoadBitmap(hinst, _T("NP2BMP")); |
| GetObject(hbmp, sizeof(BITMAP), &bmp); | GetObject(hbmp, sizeof(BITMAP), &bmp); |
| hbrush = (HBRUSH)SelectObject(hdc, | hbrush = (HBRUSH)SelectObject(hdc, |
| GetStockObject(BLACK_BRUSH)); | GetStockObject(BLACK_BRUSH)); |
| Line 1283 LRESULT CALLBACK WndProc(HWND hWnd, UINT | Line 1284 LRESULT CALLBACK WndProc(HWND hWnd, UINT |
| } | } |
| else if (sstpconfirm_exit()) { | else if (sstpconfirm_exit()) { |
| winuienter(); | winuienter(); |
| if (MessageBox(hWnd, OEMTEXT("Sure?"), OEMTEXT("Exit"), | if (MessageBox(hWnd, _T("Sure?"), _T("Exit"), |
| MB_ICONQUESTION | MB_YESNO) == IDYES) { | MB_ICONQUESTION | MB_YESNO) == IDYES) { |
| b = TRUE; | b = TRUE; |
| } | } |
| Line 1407 int WINAPI WinMain(HINSTANCE hInstance, | Line 1408 int WINAPI WinMain(HINSTANCE hInstance, |
| GetModuleFileName(NULL, modulefile, NELEMENTS(modulefile)); | GetModuleFileName(NULL, modulefile, NELEMENTS(modulefile)); |
| dosio_init(); | dosio_init(); |
| file_setcd(modulefile); | file_setcd(modulefile); |
| np2arg_analize(lpszCmdLine); | np2arg_analize(); |
| initload(); | initload(); |
| toolwin_readini(); | toolwin_readini(); |
| kdispwin_readini(); | kdispwin_readini(); |