| 498 | } |
| 499 | |
| 500 | LRESULT CALLBACK softgpuWndCurProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam) |
| 501 | { |
| 502 | switch(msg) |
| 503 | { |
| 504 | case WM_CREATE: |
| 505 | { |
| 506 | softgpu_cur_window_create(hwnd, lParam); |
| 507 | break; |
| 508 | } |
| 509 | case WM_CLOSE: |
| 510 | { |
| 511 | //LONG sty = GetWindowLongA(hwnd, GWL_STYLE) & (~WS_VISIBLE); |
| 512 | //SetWindowLongA(win_cust, GWL_STYLE, sty); |
| 513 | ShowWindow(win_cust, SW_HIDE); |
| 514 | return 0; |
| 515 | } |
| 516 | case WM_SETFONT: |
| 517 | { |
| 518 | /* broadcast to all subwindows */ |
| 519 | EnumChildWindows(hwnd, SetFontToChild, (LPARAM)wParam /* the font */); |
| 520 | } |
| 521 | } |
| 522 | |
| 523 | return DefWindowProc(hwnd, msg, wParam, lParam); |
| 524 | } |
| 525 | |
| 526 | static void process_install() |
| 527 | { |
nothing calls this directly
no test coverage detected