|
|
| version 1.33, 2005/05/13 05:47:25 | version 1.34, 2011/02/15 00:51:52 |
|---|---|
| Line 653 LRESULT CALLBACK WndProc(HWND hWnd, UINT | Line 653 LRESULT CALLBACK WndProc(HWND hWnd, UINT |
| case WM_PAINT: | case WM_PAINT: |
| hdc = BeginPaint(hWnd, &ps); | hdc = BeginPaint(hWnd, &ps); |
| if (np2opening) { | if (np2opening) { |
| HINSTANCE hinst; | HINSTANCE hinst; |
| RECT rect; | RECT rect; |
| int width; | int width; |
| int height; | int height; |
| HBITMAP hbmp; | HBITMAP hbmp; |
| BITMAP bmp; | BITMAP bmp; |
| HDC hmdc; | HDC hmdc; |
| HBRUSH hbrush; | HBRUSH hbrush; |
| hinst = (HINSTANCE)GetWindowLong(hWnd, GWL_HINSTANCE); | |
| #if defined(_WIN64) | |
| hinst = reinterpret_cast<HINSTANCE>(::GetWindowLongPtr(hWnd, GWLP_HINSTANCE)); | |
| #else | |
| hinst = reinterpret_cast<HINSTANCE>(::GetWindowLong(hWnd, GWL_HINSTANCE)); | |
| #endif | |
| 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; |
| Line 1133 int WINAPI WinMain(HINSTANCE hInstance, | Line 1138 int WINAPI WinMain(HINSTANCE hInstance, |
| _MEM_USED("report.txt"); | _MEM_USED("report.txt"); |
| dosio_term(); | dosio_term(); |
| return(msg.wParam); | return static_cast<int>(msg.wParam); |
| } | } |