Home > Software engineering > How to make a thread in the window, always keep on one of the main frame window.
How to make a thread in the window, always keep on one of the main frame window.
Time:09-19
In the main frame, I use the _beginthread () creates a thread, and in the thread created a modal dialog box, and then use the getmessage (), translatemessage (), dispathmessage () function, establish the message queue, and then creates a dialog box in the main frame, now want to ask, how to let the thread of the dialog box has been kept on the dialog box in the main frame? I tried to use the thread used in setparent () function, but can't seem to work,
CodePudding user response:
No man or woman?
CodePudding user response:
Try to Create the specified parent window for the dialog
CodePudding user response:
SetWindowPos first parameter is the layer Settings window in