MCPcopy Create free account
hub / github.com/VirtualGL/virtualgl / WndProc

Function WndProc

util/fbxtest.cpp:532–569  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

530
531#ifdef _WIN32
532LRESULT CALLBACK WndProc(HWND hwnd, UINT iMsg, WPARAM wParam, LPARAM lParam)
533{
534 switch(iMsg)
535 {
536 case WM_CREATE:
537 return 0;
538 case WM_CLOSE:
539 PostQuitMessage(0);
540 return 0;
541 case WM_CHAR:
542 if((wParam == 27 || wParam == 'q' || wParam == 'Q') && doVid)
543 {
544 PostQuitMessage(0);
545 return 0;
546 }
547 break;
548 case WM_PAINT:
549 if(!doVid)
550 {
551 display();
552 PostQuitMessage(0);
553 }
554 else
555 {
556 if(interactive) doDisplay = true;
557 return 0;
558 }
559 break;
560 case WM_MOUSEMOVE:
561 if((wParam & MK_LBUTTON) && doVid && interactive)
562 {
563 doDisplay = advance = true;
564 return 0;
565 }
566 break;
567 }
568 return DefWindowProc(hwnd, iMsg, wParam, lParam);
569}
570#endif
571
572

Callers

nothing calls this directly

Calls 1

displayFunction · 0.70

Tested by

no test coverage detected