MCPcopy Create free account
hub / github.com/JHRobotics/softgpu / softgpuWndCurProc

Function softgpuWndCurProc

softgpu.c:500–524  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

498}
499
500LRESULT 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
526static void process_install()
527{

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected