SAMPLE: StatBar.exe Demonstrates Window Status Bar

ID: Q85203


The information in this article applies to:
  • Microsoft Windows Software Development Kit (SDK) versions 3.0, 3.1


SUMMARY

StatBar.exe is a sample in the Microsoft Software Library that demonstrates how to create a status bar for an application. An application can implement a status bar at the bottom of its main window to provide information to the user. For example, Microsoft Word for Windows and Microsoft Excel for Windows provide status bars. The status bar in these applications presents the state of the CAPS LOCK key, insert mode, extended selection mode, and so forth.


MORE INFORMATION

The following file is available for download from the Microsoft Download Center. Click the file name below to download the file:

StatBar.exe
For more information about how to download files from the Microsoft Download Center, please visit the Download Center at the following Web address
http://www.microsoft.com/downloads/search.asp
and then click How to use the Microsoft Download Center.

The STATBAR application creates the status bar when its main window receives a WM_CREATE message. Each time the main window receives a WM_KEYUP message, the application determines whether the released key is a "toggle key," such as the CAPS LOCK, NUM LOCK, or INS key. If so, the application draws the status bar to reflect the current state of the toggle key that changed state. When the status bar receives a WM_PAINT message, the status bar repaints its entire client area.

Additional query words:

Keywords : kbfile kbsample kb16bitonly kbGrpUser kbWinOS310 kbWndw kbWinOS300
Version : WINDOWS:3.0,3.1
Platform : WINDOWS
Issue type :


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