Welcome to Software Development on Codidact!
Will you help us build our independent community of developers helping developers? We're small and trying to grow. We welcome questions about all aspects of software development, from design to code to QA and more. Got questions? Got answers? Got code you'd like someone to review? Please join us.
Post History
It seems like changing the window handle to null in PeekMessageW solved the issue: BOOL bret = PeekMessageW(&msg, null, 0, 0, PM_REMOVE); Then I can still get the window handle source like ...
Answer
#1: Initial revision
It seems like changing the window handle to null in PeekMessageW solved the issue: ```d BOOL bret = PeekMessageW(&msg, null, 0, 0, PM_REMOVE); ``` Then I can still get the window handle source like this: ```d output.handle = msg.hwnd; ``` Win32 API is just really not intuitive, and many behaviors are not well documented.