Hmm... I'm not seeing any issue with wglgears and `wine control desk.cpl` virtual resolution changes, so I'm not sure what needs to be done.
Nevertheless, I added a https://gitlab.winehq.org/wine/wine/-/merge_requests/8504/diffs?commit_id=db... and https://gitlab.winehq.org/wine/wine/-/merge_requests/8504/diffs?commit_id=0e... to !8504 which I believe could be doing what you want?