MCPcopy Create free account
hub / github.com/MicrosoftEdge/WebView2Samples / RunMessagePump

Function RunMessagePump

SampleApps/WebView2SampleWinComp/App.cpp:34–51  ·  view source on GitHub ↗

Run the message pump for one thread.

Source from the content-addressed store, hash-verified

32
33// Run the message pump for one thread.
34int RunMessagePump()
35{
36 HACCEL hAccelTable = LoadAccelerators(hInst, MAKEINTRESOURCE(IDC_WEBVIEW2SAMPLEWINCOMP));
37
38 MSG msg;
39
40 // Main message loop:
41 while (GetMessage(&msg, nullptr, 0, 0))
42 {
43 if (!TranslateAccelerator(msg.hwnd, hAccelTable, &msg))
44 {
45 TranslateMessage(&msg);
46 DispatchMessage(&msg);
47 }
48 }
49
50 return (int) msg.wParam;
51}

Callers 1

wWinMainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected