Microsoft KB Archive/186459

From BetaArchive Wiki

SAMPLE: 256 Color (Or More) Splash Screens For Applications

Q186459



The information in this article applies to:


  • Microsoft Win32 Software Development Kit (SDK)
  • Microsoft Windows 95
  • Microsoft Windows NT Server version 4.0
  • Microsoft Windows NT Workstation version 4.0
  • Microsoft Windows 2000 Advanced Server
  • Microsoft Windows 2000 Server
  • Microsoft Windows 2000 Professional





SUMMARY

Splash.exe is a sample application that demonstrates:

  • How to display a splash screen for an application.
  • How to load resource bitmaps without losing color information.



MORE INFORMATION

The following file is available for download from the Microsoft Download Center:


Splash.exe

For additional information about how to download Microsoft Support files, click the article number below to view the article in the Microsoft Knowledge Base:

Q119591 How to Obtain Microsoft Support Files from Online Services

Microsoft used the most current virus detection software available on the date of posting to scan this file for viruses. Once posted, the file is housed on secure servers that prevent any unauthorized changes to the file.




The following files are a part of the Splash.exe:

  • Splash.c: Contains all of the functions relating to creating and displaying a splash bitmap.
  • Splash.rc: Contains the resource for the sample including references to the bitmap that is displayed.

Splash.exe provides a simple way to display a splash screen for any application without modifying the sources for that application. You can avoid modifying the sources for the application because the user starts the Splash application, while the Splash application displays the splash bitmap and starts the real application.

Splash.exe is configured to launch Notepad.exe while displaying the Windows NT logo bitmap for five seconds. To customize Splash with your own bitmaps, simply change the bitmap corresponding to IDB_BITMAP in the resources for the SPLASH project. You can further customize the sample by changing the following values in Splash.c:

  • lpszApplication: Determines the name of the application that the splash screen application starts. It defaults to Notepad.exe for demonstration purposes.
  • bMakeSplashTopmost: Determines whether or not the splash screen is displayed (and kept) in front of other windows until it is canceled or times out.
  • dwSplashDuration: Determines how long (in milliseconds) the splash screen is displayed. Note that the user can cancel the splash screen by clicking on it or pressing a key while it is active.

Additional query words: kbDSupport kbGDI kbBitmap kbDevContext kbDisplay kbdsd

Keywords : kbfile kbsample kbOSWin2000
Issue type :
Technology : kbWinNTsearch kbWinNTWsearch kbWinNTW400 kbWinNTW400search kbWinNT400xsearch kbwin2000AdvServ kbwin2000AdvServSearch kbwin2000Serv kbWinNTSsearch kbWinNTS400xsearch kbWinNTS400 kbwin2000ServSearch kbwin2000Search kbwin2000ProSearch kbwin2000Pro kbWin32SDKSearch kbAudDeveloper kbWin95search kbSDKSearch kbWinAdvServSearch kbZNotKeyword3 kbWin32sSearch


Last Reviewed: December 16, 2000
© 2001 Microsoft Corporation. All rights reserved. Terms of Use.