MCPcopy Create free account
hub / github.com/GPUOpen-Effects/GeometryFX / MsgProc

Function MsgProc

amd_geometryfx_sample/src/GeometryFX_Sample.cpp:1357–1387  ·  view source on GitHub ↗

-------------------------------------------------------------------------------------- Handle messages to the application --------------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

1355// Handle messages to the application
1356//--------------------------------------------------------------------------------------
1357LRESULT CALLBACK MsgProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam,
1358 bool *pbNoFurtherProcessing, void *pUserContext)
1359{
1360 // Pass messages to dialog resource manager calls so GUI state is updated
1361 // correctly
1362 *pbNoFurtherProcessing = g_DialogResourceManager.MsgProc(hWnd, uMsg, wParam, lParam);
1363 if (*pbNoFurtherProcessing)
1364 {
1365 return 0;
1366 }
1367
1368 // Pass messages to settings dialog if its active
1369 if (g_SettingsDlg.IsActive())
1370 {
1371 g_SettingsDlg.MsgProc(hWnd, uMsg, wParam, lParam);
1372 return 0;
1373 }
1374
1375 // Give the dialogs a chance to handle the message first
1376 *pbNoFurtherProcessing = g_HUD.m_GUI.MsgProc(hWnd, uMsg, wParam, lParam);
1377 if (*pbNoFurtherProcessing)
1378 {
1379 return 0;
1380 }
1381
1382 // Pass all remaining windows messages to camera so it can respond to user
1383 // input
1384 g_Camera.HandleMessages(hWnd, uMsg, wParam, lParam);
1385
1386 return 0;
1387}
1388
1389//--------------------------------------------------------------------------------------
1390// Handle key presses

Callers 1

MsgProcMethod · 0.85

Calls 3

IsActiveMethod · 0.80
HandleMessagesMethod · 0.80
MsgProcMethod · 0.45

Tested by

no test coverage detected