SAMPLE: Code Demonstrates an Application Sign-On Screen

Last reviewed: February 15, 1996
Article ID: Q79976
The information in this article applies to:
  • Microsoft Windows Software Development Kit (SDK) for Windows versions 3.o and 3.1

SUMMARY

Many applications have a "sign-on" screen that is displayed while the application is loading and initializing. This screen remains visible for some set amount of time or until the user performs some action that interacts with the application. At that point, the sign-on screen disappears and the application may be used as normally.

Download SIGNON.EXE, a self-extracting file, from the Microsoft Software Library (MSL) on the following services:

  • Microsoft Download Service (MSDL)

          Dial (206) 936-6735 to connect to MSDL
          Download SIGNON.EXE (size: 22215 bytes) 
    
  • Internet (anonymous FTP)

          ftp ftp.microsoft.com
          Change to the \SOFTLIB\MSLFILES directory
          Get SIGNON.EXE (size: 22215 bytes) 
    

The sign-on screen can be implemented by using a modeless dialog box and performing some additional processing in the application's main message loop. After the main window is created and displayed, a modeless dialog box is created and displayed. This modeless dialog box usually contains the company name and application copyright information. The application then waits for any action indicating that the user is ready to work, such as clicking the mouse or typing on the keyboard. Additionally, the application could start a timer and remove the sign-on screen after a set amount of time (five seconds, for example).


Additional reference words: 3.00 3.10 softlib SIGNON.EXE
KBCategory: kbprg kbfile
KBSubcategory: UsrDlgs


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: February 15, 1996
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.