MCPcopy Create free account
hub / github.com/Aleksoid1978/VideoRenderer / OnReceiveMessage

Method OnReceiveMessage

Source/PropPage.cpp:330–598  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

328}
329
330INT_PTR CVRMainPPage::OnReceiveMessage(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
331{
332 if (uMsg == WM_COMMAND) {
333 LRESULT lValue;
334 const int nID = LOWORD(wParam);
335 int action = HIWORD(wParam);
336
337 if (action == BN_CLICKED) {
338 if (nID == IDC_CHECK1) {
339 m_SetsPP.bUseD3D11 = IsDlgButtonChecked(IDC_CHECK1) == BST_CHECKED;
340 EnableControls();
341 SetDirty();
342 return (LRESULT)1;
343 }
344 if (nID == IDC_CHECK2) {
345 m_SetsPP.bShowStats = IsDlgButtonChecked(IDC_CHECK2) == BST_CHECKED;
346 SetDirty();
347 return (LRESULT)1;
348 }
349 if (nID == IDC_CHECK3) {
350 m_SetsPP.bDeintDouble = IsDlgButtonChecked(IDC_CHECK3) == BST_CHECKED;
351 SetDirty();
352 return (LRESULT)1;
353 }
354 if (nID == IDC_CHECK5) {
355 m_SetsPP.bVPScaling = IsDlgButtonChecked(IDC_CHECK5) == BST_CHECKED;
356 SetDirty();
357 GetDlgItem(IDC_STATIC7).EnableWindow(m_SetsPP.bVPScaling && m_SetsPP.bUseD3D11 && IsWindows10OrGreater());
358 GetDlgItem(IDC_COMBO8).EnableWindow(m_SetsPP.bVPScaling && m_SetsPP.bUseD3D11 && IsWindows10OrGreater());
359 return (LRESULT)1;
360 }
361 if (nID == IDC_CHECK6) {
362 m_SetsPP.bInterpolateAt50pct = IsDlgButtonChecked(IDC_CHECK6) == BST_CHECKED;
363 SetDirty();
364 return (LRESULT)1;
365 }
366 if (nID == IDC_CHECK7) {
367 m_SetsPP.VPFmts.bNV12 = IsDlgButtonChecked(IDC_CHECK7) == BST_CHECKED;
368 SetDirty();
369 return (LRESULT)1;
370 }
371 if (nID == IDC_CHECK8) {
372 m_SetsPP.VPFmts.bP01x = IsDlgButtonChecked(IDC_CHECK8) == BST_CHECKED;
373 SetDirty();
374 return (LRESULT)1;
375 }
376 if (nID == IDC_CHECK9) {
377 m_SetsPP.VPFmts.bYUY2 = IsDlgButtonChecked(IDC_CHECK9) == BST_CHECKED;
378 SetDirty();
379 return (LRESULT)1;
380 }
381 if (nID == IDC_CHECK4) {
382 m_SetsPP.VPFmts.bOther = IsDlgButtonChecked(IDC_CHECK4) == BST_CHECKED;
383 SetDirty();
384 return (LRESULT)1;
385 }
386 if (nID == IDC_CHECK10) {
387 m_SetsPP.bUseDither = IsDlgButtonChecked(IDC_CHECK10) == BST_CHECKED;

Callers

nothing calls this directly

Calls 5

SetDirtyFunction · 0.85
ComboBox_GetCurItemDataFunction · 0.85
SetDefaultMethod · 0.80
GetSettingsMethod · 0.80
SetSettingsMethod · 0.80

Tested by

no test coverage detected