I have a setup with multiple windows (like the code part shows).
Inside Window_0_Events(EventID) I need to use #WM_LBUTTONDOWN.
That works fine, but the first #WM_LBUTTONDOWN on an other window, is also recieved by Window_0.
Why or how does that happen and how can I prevent that 'bad split of events' ?
Thanks
Code: Select all
Repeat
EventID = WaitWindowEvent()
If EventID
Select EventWindow()
Case Window_0
Window_0_Events(EventID)
Case Window_1
Window_1_Events(EventID)
Case Window_2
Window_2_Events(EventID)
Case Window_3
Window_3_Events(EventID)
EndSelect
EndIf
ForEver