c++ - Catch a moment when window message is put into queue -


i have 3rdparty application (target), creates window. embed window own application setting parent, changing styles, etc.

the problem spy++ shows target receiving wm_destroy 2 times (in case close app). leads crash of target. want understand, why message queue contains 2 wm_destroy associated target window (btw, 1 wm_ncdestroy).

to setting breakpoints @ destroywindow, postmessage syscalls, these functions appear not called main target window (first 1 called child windows, second 1 - different messages, except wm_destroy). did in context of both process , target process.

so question is, there low-level function puts messages thread message queue? want put breakpoint @ , catch moment when wm_destroy put there. smth postthreadmessageinternal...

thanks in advance!


Comments

Popular posts from this blog

android - getbluetoothservice() called with no bluetoothmanagercallback -

sql - ASP.NET SqlDataSource, like on SelectCommand -

ios - Undefined symbols for architecture armv7: "_OBJC_CLASS_$_SSZipArchive" -