when do control procedures receive kill events?
Sat, 06/05/2021 - 01:28 am
If I make a panel with a button that executes KillWindow to kill its host, none of the control procedures for controls in the panel are called with eventcode -1. But, if I use PauseForUser to turn the panel into a modal dialog, the -1 events are reported. If I run Execute "KillWindow..." in the control procedure I don't see the -1 event, but I do with Execute /P. And if I execute KillWindow from commandline the -1 events are reported. That is not what I expected and now I'm wondering in which circumstances kill events aren't reported. The manual is not exactly clear on this, or maybe I'm not looking in the right place?
Same for DoWindow /K.