CodePudding user response:
Multiple Threads in the User Interface of http://msdn.microsoft.com/zh-cn/library/ms810439.aspxCodePudding user response:
Many solutions, such as the parent window of the UI put global variable timer timer, let the child window reading,
Send a message to the parent window or child window, the message each other, WM_USER + 1,
The child thread operation is the main thread of the UI error prone, and is not allowed
CodePudding user response:
"But getparent () function returns the empty value"The child window is not without parent window?
FindWindow looking for the main window.
CodePudding user response:
I don't really understand this, and askedCodePudding user response:
Child window is the main window of the child?CodePudding user response:
In the progress of the child window, to get the main window class pointerCodePudding user response:
When you create a thread, the HWND of the dialog box window handle as thread parameters can be passed to the thread,CodePudding user response:
Handle to the window structure into a thread parameters or use global variables