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

Function softgpuWndProc

softgpu.c:615–783  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

613}
614
615LRESULT CALLBACK softgpuWndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
616{
617 //printf("event: %u\n", msg);
618
619 switch(msg)
620 {
621 case WM_NCCREATE:
622 {
623 break;
624 }
625 case WM_CREATE:
626 {
627 softgpu_window_create(hwnd, lParam);
628 break;
629 }
630 case WM_COMMAND:
631 {
632 switch(LOWORD(wParam))
633 {
634 case BTN_INSTALL:
635 settingsReadback(win_main);
636 settingsReadback(win_cust);
637
638 if(installbtn != INVALID_HANDLE_VALUE)
639 {
640 DWORD sty = GetWindowLongA(installbtn, GWL_STYLE) | WS_DISABLED;
641 SetWindowLongA(installbtn, GWL_STYLE, sty);
642
643 writeSettings();
644 }
645 process_install();
646 break;
647 case BTN_EXIT:
648 //writeSettings(hwnd);
649 PostQuitMessage(0);
650 break;
651 case BTN_ABOUT:
652 about(hwnd);
653 break;
654 case BTN_BROWSE:
655 softgpu_browse(hwnd);
656 break;
657 case CHBX_SIMD95:
658 if(IsDlgButtonChecked(hwnd, CHBX_SIMD95))
659 {
660 if(MessageBoxA(hwnd, "SIMD95 works well only in VirtualBox,\nin other cases, the system probably won't boot!\n\nAre you sure you want to this option set?", "WARNING!", MB_ICONWARNING|MB_YESNO) == IDNO)
661 {
662 CheckDlgButton(hwnd, CHBX_SIMD95, BST_UNCHECKED);
663 }
664 }
665 break;
666 case BTN_SYSINFO:
667 sysinfo(hwnd);
668 break;
669 case BTN_WGLTEST:
670 runprog("tools\\wgltest.exe");
671 break;
672 case BTN_GLCHECKER:

Callers

nothing calls this directly

Calls 15

softgpu_window_createFunction · 0.85
settingsReadbackFunction · 0.85
writeSettingsFunction · 0.85
process_installFunction · 0.85
aboutFunction · 0.85
softgpu_browseFunction · 0.85
sysinfoFunction · 0.85
runprogFunction · 0.85
version_compareFunction · 0.85
softgpu_browserFunction · 0.85
settingsResetFunction · 0.85
settingsApplyFunction · 0.85

Tested by

no test coverage detected