How to prevent setting focus to modeless dialog ?
-
I have some modeless dialog, where WebBrowser is downloading some pages. I need to do this in background, it means, this window won't be activated unless user click into the dialog, or will select it in task manager. How to do this ? Sometimes IE after downloading web page will set this dialog as active :( Thank you !
rrrado
-
I have some modeless dialog, where WebBrowser is downloading some pages. I need to do this in background, it means, this window won't be activated unless user click into the dialog, or will select it in task manager. How to do this ? Sometimes IE after downloading web page will set this dialog as active :( Thank you !
rrrado
i did not test it, but i would start this way. after m_Modelessdialog->ShowWindow(SW_SHOW); i would use this->SetActiveWindow(); or this->SetFocus(); or this->BringWindowToTop(); etc. to get the focus pack to the parent. just try hope it helps George