Problem about Owner Window
-
Hi, everyone. in my dialog-based application, i want to create a dialog (CMyDialog) that is not owned by the main dialog. i derive a class named CMyThread from CWinThread and create an instance of CMyDialog(modaless dialog) in the InitInstance because i want an instance of CMyDialog has its own message loop, so i create instances of CMyDialog use this function: CreateMyDialog() { AfxBeginThread(RUNTIME_CLASS(CMyThread)); } if i call CreateMyDialog before the creation of main dialog ,then the dialog will not be owned by main dialog, of course,:). but if i call CreateMyDialog after the main dialog has been created, the dialog will be an owned window. so how to create an instance of CMyDialog without an owner window after the main dialog has been created. Thanks.