Closing Modal Dialog
-
I have a dialog that is created using dlg.DoModal(); I have a timer funciton running in a seperate thread, created by the dialog. Is it possible to have the thread call Onok() for the dialogue, in order to close the dialogue as if I'd hit ok button? Thanks
-
I have a dialog that is created using dlg.DoModal(); I have a timer funciton running in a seperate thread, created by the dialog. Is it possible to have the thread call Onok() for the dialogue, in order to close the dialogue as if I'd hit ok button? Thanks
-
I have a dialog that is created using dlg.DoModal(); I have a timer funciton running in a seperate thread, created by the dialog. Is it possible to have the thread call Onok() for the dialogue, in order to close the dialogue as if I'd hit ok button? Thanks
-
I have a dialog that is created using dlg.DoModal(); I have a timer funciton running in a seperate thread, created by the dialog. Is it possible to have the thread call Onok() for the dialogue, in order to close the dialogue as if I'd hit ok button? Thanks
You don't need a separate thread for the timer, by the way. Just call SetTimer inside OnInitDialog and add the OnTimer handler. In there you can call OnOK(). Regards, Alvaro
The world is a dangerous place, not because of those who do evil, but because of those who look on and do nothing. -- Albert Einstein