I have a user-interface thread that creates a dialog box:
BOOL tcMyThreadClass::InitInstance()
{
mCMyDialog = new tcMyDialog;
m_pMainWnd = mCMyDialog;
.....
return TRUE;
}
I want to terminate this thread (call its ExitInstance()) whenever mCMyDialog::OnCancel() is called. But I can not get mCMyDialog to post the WM_QUIT message to this thread. It will only post it to the main thread that created this thread. What am I missing