[DESKADP][DESKMON] Notify property sheet that DWLP_MSGRESULT is set

When FALSE is returned, Apply button ignores validation result
and becomes disabled after clicking as if settings were applied.
Fix it by setting the return value to TRUE.

See https://docs.microsoft.com/en-us/windows/win32/controls/psn-apply
This commit is contained in:
Stanislav Motylkov 2022-06-20 02:06:37 +03:00
parent 568383c9b9
commit fced1c1192
No known key found for this signature in database
GPG key ID: AFE513258CBA9E92
2 changed files with 2 additions and 0 deletions

View file

@ -422,6 +422,7 @@ DisplayAdapterDlgProc(HWND hwndDlg,
SetWindowLongPtr(hwndDlg,
DWLP_MSGRESULT,
ApplyDisplayAdapterChanges(This));
Ret = TRUE;
break;
}

View file

@ -666,6 +666,7 @@ MonitorDlgProc(HWND hwndDlg,
SetWindowLongPtr(hwndDlg,
DWLP_MSGRESULT,
ApplyMonitorChanges(This));
Ret = TRUE;
break;
}