Can a child thread of parent GUI dialog thread create a child window?
Can you create a child window from a secondary child thread or it must be c开发者_运维问答reated from GUI thread? Assuming the life time of child thread is until the end of program.
Unlike other operating systems, each thread in windows can host its own message pump, and thus windows.
Care must be taken as child windows need to communicate synchronously with their parent - so you must take care to ensure that neither thread holds a critical section or synchronous object while calling an window API that could result in a SendMessage being sent - this WILL deadlock the threads.
精彩评论