RE: Password dialog at application startup

From: Rahul T. (anonymous_at_discussions.microsoft.com)
Date: 04/14/04


Date: Tue, 13 Apr 2004 17:26:09 -0700

At the end call :

m_pMainWnd->SetForegroundWindow();

I guess when the dialog is dismissed ( IDOK or IDCANCEL), their is no other active window created for this application so the focus goes to the shell and your application window goes in the background.

Hope it helps,
-Rahul



Relevant Pages

  • Re: Password dialog at application startup
    ... Thank you very much for the explanation. ... > I guess when the dialog is dismissed (IDOK or IDCANCEL), ... other active window created for this application so the focus goes to the ...
    (microsoft.public.windowsce.embedded.vc)
  • Switching active windows
    ... I require code for VB6 that would change the active window to another ... I've opened it with "Shell (target as ... String)" and I think I may be able to use the ID it returns but I ...
    (microsoft.public.vb.general.discussion)
  • Word shell opens
    ... In Outook07, when replying to and e-mail, a Shell of MSword opens behind the ... message and takes over as the active window. ...
    (microsoft.public.outlook.general)