Re: Bypassing a Login?

From: Edward W (EdwardW_at_discussions.microsoft.com)
Date: 02/12/05


Date: Fri, 11 Feb 2005 18:19:04 -0800

Thanks for the help.

I found the current call to ShowWindow and replaced the SW_SHOW parameter
with SW_HIDE. The threads are still running but no GUI. I also changed
changed the login dialog window to be Modeless instead of Modal. Now all I
have to do is do the ShowWindow once the user has logged in which I think I
can figure out.

Thanks again for the help.
 

"AliR" wrote:

> He want the dialog there, but want the app to do it's system stuff, even if
> the user hasn't logged in yet.
>
> It sound's like he needs to create a thread before the login dialog comes
> up.
>
> AliR.
>
> "Scott McPhillips [MVP]" <org-dot-mvps-at-scottmcp> wrote in message
> news:e2t4C8IEFHA.2876@TK2MSFTNGP12.phx.gbl...
> > Edward W wrote:
> > > It would be nice if I could somehow load the app, GUI and all, but keep
> the
> > > GUI not visible except for the login window. Once the user logs in, the
> rest
> > > of the GUI would become visible. This way the app will monitor the
> devices
> > > but the user will not have any configuration access until he/she logs
> in.
> > >
> > > Does anybody know if this can be done? Any other thoughts and ideas
> would
> > > be appreciated also. Thanks in advance.
> > >
> >
> > Just use ShowWindow to hide or show your main window. This will not
> > affect its functionality.
> >
> > --
> > Scott McPhillips [VC++ MVP]
> >
>
>
>



Relevant Pages

  • ShowWindow() Has No Effect
    ... The ShowWindow() method does not work for me. ... ShowWindow(SW_RESTORE); would bring the window to the size it had before ... pDoc->m_pContFile and pContFile are of the same class and contain filename ... CLookDoc *pDoc; ...
    (microsoft.public.vc.mfc)
  • ShowWindow() Has No Effect
    ... The ShowWindow() method does not work for me. ... ShowWindow(SW_RESTORE); would bring the window to the size it had before ... pDoc->m_pContFile and pContFile are of the same class and contain filename ... CLookDoc *pDoc; ...
    (microsoft.public.vstudio.general)
  • Re: Maximize Access Application
    ... Private Declare Function ShowWindow Lib "user32" _ ... (ByVal hWnd As Long, _ ... Public Sub MaximizeWindow(hWnd as Long) ... > form window) when it opens using VBA. ...
    (microsoft.public.access.formscoding)
  • Re: Prevent focus loss on shdocvw.internetexplorer creation
    ... pass the URL and then call showwindow with ... > I'm trying to create a new instance of the Internet Explorer browser ... > active window. ... > to navigate the browser to new urls, but the very first time the ...
    (microsoft.public.dotnet.framework.interop)
  • Re: customizing SaveFileDialog
    ... I think you may try to create the window without visible and show it later ... Applications create their main window by calling CreateWindow with the ... and later call ShowWindow with the SW_SHOW flag ...
    (microsoft.public.dotnet.framework.interop)

Loading