- Topics - 0
- Replies - 13
- Total Posts - 13
It’s not clear what you mean by buttons not working, this could be a variety of things. A few of them are event loop related as you have surmised…
Remember to forward all messages using DAT_EVENT/MSG_PROCESSEVENT and inspect the return code. If the return code is TWRC_DSEVENT then you have to inspect the TWMessage component of the structure – if this is MSG_XFERREADY or MSG_CLOSEDSREQ then you are expected to do something. It is possible that TWMessage will not be either of these in which case you are just supposed to ignore it and continue on to the next message in the queue.
If the return code is TWRC_NOTDSEVENT then you are expected to allow windows to process the message normally with TranslateMessage, DispatchMessage calls.
Remember – if you recieve TWRC_DSEVENT – you are not to dispatch the message to TranslateMessage, DispatchMessage at all – this will cause all kids of strange GUI behavior if you do.