On Fri Oct 20 21:30:59 2023 +0000, Jinoh Kang wrote:
Is this merely an optimization to opportunistically avoid server calls? If so, it should behave the same as if the `if()` guard did not exist.
if (win->real_class_id != param)
I didn't include it in the tests, but locally I've tested whether or not you can change the real class for an HWND after it has been set, e.g setting it to edit by passing the HWND to the edit control window procedure, and then passing it into the static control window procedure. It's only able to be set once.
If we did your suggestion, this would technically break. So it serves two purposes, avoids unnecessary server calls, and avoids setting it to something else after it has already been set.