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

Method About

SampleApps/WebView2APISample/AppWindow.cpp:1721–1737  ·  view source on GitHub ↗

Message handler for about dialog.

Source from the content-addressed store, hash-verified

1719
1720// Message handler for about dialog.
1721INT_PTR CALLBACK AppWindow::About(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam)
1722{
1723 switch (message)
1724 {
1725 case WM_INITDIALOG:
1726 return (INT_PTR)TRUE;
1727
1728 case WM_COMMAND:
1729 if (LOWORD(wParam) == IDOK || LOWORD(wParam) == IDCANCEL)
1730 {
1731 EndDialog(hDlg, LOWORD(wParam));
1732 return (INT_PTR)TRUE;
1733 }
1734 break;
1735 }
1736 return (INT_PTR)FALSE;
1737}
1738
1739// Decide what to do when an accelerator key is pressed. Instead of immediately performing
1740// the action, we hand it to the caller so they can decide whether to run it right away

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected