Multithread ?
-
How can I show a modeless dialog in a separate thread ? Ex: I wrote a app as dialog, let's call it CMyProgDlg I have a button, whenever I press at that button, it calls a function( let's call it static void Thread(LPVOID lParam) This function shows a modeless dialog. This modeless dialog run in a thread. I tried AfxBeginThread(Thread, this) in CMyProgDlg, but it failed. Anyway ? Thanks Hung Son A Vietnamese student i-g.hypermart.net dlhson2001@yahoo.com
-
How can I show a modeless dialog in a separate thread ? Ex: I wrote a app as dialog, let's call it CMyProgDlg I have a button, whenever I press at that button, it calls a function( let's call it static void Thread(LPVOID lParam) This function shows a modeless dialog. This modeless dialog run in a thread. I tried AfxBeginThread(Thread, this) in CMyProgDlg, but it failed. Anyway ? Thanks Hung Son A Vietnamese student i-g.hypermart.net dlhson2001@yahoo.com
You don't really need to create a modeless dialog using a separate thread because the parent dialog or window is still accesible and can process messages. Nish
Regards, Nish Native CPian. Born and brought up on CP. With the CP blood in him.
-
How can I show a modeless dialog in a separate thread ? Ex: I wrote a app as dialog, let's call it CMyProgDlg I have a button, whenever I press at that button, it calls a function( let's call it static void Thread(LPVOID lParam) This function shows a modeless dialog. This modeless dialog run in a thread. I tried AfxBeginThread(Thread, this) in CMyProgDlg, but it failed. Anyway ? Thanks Hung Son A Vietnamese student i-g.hypermart.net dlhson2001@yahoo.com
You've got it backwards. Assuming you really do need a thread -- have the modeless dialog create, control, and abide by the thread, instead of the other way around. Regards, Larry Antram Stardust Software "I know not with what weapons World War III will be fought, but World War IV will be fought with sticks and stones." -- Albert Einstein