How do you create a GUI thread?
-
I try and create a thread that will loop the GetMessage,TranslateMessage,DispatchMessage commands, but the thread only executes the loop once, and then exits. Someone told me you have to create a "GUI thread" to do that. How to you make a GUI thread then? --Dave
-
I try and create a thread that will loop the GetMessage,TranslateMessage,DispatchMessage commands, but the thread only executes the loop once, and then exits. Someone told me you have to create a "GUI thread" to do that. How to you make a GUI thread then? --Dave
As fas as I know, GUI thead is a thread that has a message pump.. No more than that.. So check your callback procedure of the thread... Make sure you do not break the loop of message pump.. It will be broken automatically by WM_QUIT.. After testing this, give me a THREAD to this posting.. Regardz -Ryan