I'm writing a dialog based app (multithreaded, db accessing). And I realised that when you press enter, the windows message pump sends an IDOK response causing windows to end the modal loop. This would be ok if I wanted to shut down the app this way, but I don't have code in place to cleanup here and I don't want the program to exit on pressing [Enter].
So far, I wrote:
to override the OnOK message and do nothing. It works but I'm not sure if it's the best way to do this. Would it be better, or is there a way to intercept the IDOK message/disable the message or something? Thanks for any/all help.