Will CreateWindowEx's window self-destroyed if thread is quitted?
I s'ppose yes, but my problem ain't this only.
I've a module, in the Sub Main, I created a window using
CreateWindowEx, then I'll go into a infinite loop to Translate this
window's messages.
But now I just want to SetTimer to ask Window to call back
this message Translator procedure, which I dont have to go into
a loop and can go on with my codes. So it's kinda like Multi-
Threading.
This might not be a problem, but until I want to make it a DLL,
which there'll be a sub(SubCreate) which'll create a window and
then exit sub. In this sub of course I'll also SetTimer to call
back the msg Translator. Otherwise SubCreate will've to loop
4ever to Translate msg and can't exit.(Bear in mind this's a class
object, if this sub can't exit that'll sort of spoil the concept of class)
So, ok, now I SetTimer in SubCreate and exit, will the
window I created be destroyed since I exit the sub? Because
I've tried it in a module which after exitting Sub Main the window
destroys itself.
So, I was thinking, will the window destroys itself after exitting a
sub which created it or after the thread is quitted?(In this case,
the thread is my DLL)
Thanks a lot. Pls reply I'll explain more of my problem if u still dont
understand. :)