I have a Window that is a child of the background. It has many child widgets.
When the user press the Window, a WM_TOUCH_CHILD message is propagated to the background callback. There I delete the Window, but the application crashes, I think because WM is trying to send other messages (related to the touch) to the widgets that were already deleted.
So the question is: how to delete a child Window when the touch is released on whatever point? I would like to not edit the child window code, only the parent code.
When the user press the Window, a WM_TOUCH_CHILD message is propagated to the background callback. There I delete the Window, but the application crashes, I think because WM is trying to send other messages (related to the touch) to the widgets that were already deleted.
So the question is: how to delete a child Window when the touch is released on whatever point? I would like to not edit the child window code, only the parent code.