Using Timer with non-dialog class
-
Thanks for the reply, can you give me more details how to use it? How can I know which message I Received by msg?
This is the standard windows message pump, it only causes windows messages to get processed for apps that are not "dialog based". You don't modify this code in any way nor look at the message in that loop. The "dispatch" is done by windows to the proper messsage handler. If you have dialogs, windows does this for you.
-
This is the standard windows message pump, it only causes windows messages to get processed for apps that are not "dialog based". You don't modify this code in any way nor look at the message in that loop. The "dispatch" is done by windows to the proper messsage handler. If you have dialogs, windows does this for you.
Can you give me exmple how to write a messsage handler , I did it only with the class wizard of mfc, and this is the first time I need to add a timer to a class that don't connected to any window, even if I creat a fictive window like dialog box the SetTimer(...) works only if the dialog is opened by DoModal. thanks