13 Jun
2024
13 Jun
'24
4:55 p.m.
On Thu Jun 13 07:28:29 2024 +0000, Zhiyi Zhang wrote:
It seems to me that all this hooking is to get the dialog window handle and wait for it to be initialized. I think you can achieve the same thing with PROPSHEETHEADER.pfnCallback and wait for PSCB_INITIALIZED. See sheet_callback() in comctl32/tests/propsheet.c for example. Yes, it only works when we're in that message loop. I tried the callback, but it's too early, it simply doesn't process the inputs properly. That's why I have that work around where I sent a message myself, and once it's received, we must be processing messages.
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/5761#note_73078