Windows API Guide: ntohl Function


The static control's window class describes a static control. Static controls are commonly used as labels for other controls.

The button control's window class is registered automatically when Windows starts. The name of the class is "STATIC".

Styles

SS_BITMAP
Display the bitmap specified by the static control's text.
SS_BLACKFRAME
Draw a frame around the static control in the same color as a window frame.
SS_BLACKRECT
Fill the static control with the same color as a window frame.
SS_CENTER
Center the text in the static control.
SS_CENTERIMAGE
If the bitmap or icon is smaller than the size of the static control, fill the rest of the control with whatever color is at the image's upper-left corner.
SS_ENDELLIPSIS
Windows NT, 2000: Replace the end of the string with an ellipsis if it is too long to fit in the static control.
SS_ENHMETAFILE
Display the enhanced metafile identified by the static control's text. Scale the enhanced metafile to fit the static control.
SS_ETCHEDFRAME
Draw the frame of the static control using the etched edge style.
SS_ETCHEDHORZ
Draw only the top and bottom edges of the static control using the etched edge style.
SS_ETCHEDVERT
Draw only the left and right edges of the static control using the etched edge style.
SS_GRAYFRAME
Draw a frame around the static control in the same color as the screen background.
SS_GRAYRECT
Fill the static control with the same color as the screen background.
SS_ICON
Display the icon identified by the static control's text. The static control automatically resizes to the size of the icon.
SS_LEFT
Left-align the text in the static control.
SS_LEFTNOWORDWRAP
Left-align the text in the static control, but do not word wrap.
SS_NOPREFIX
Do not use an amperstand character in the string to identify an accelerator prefix, instead displaying the amperstands as regular characters.
SS_OWNERDRAW
The owner of the static control is fully responsible for drawing the control.
SS_PATHELLIPSIS
Windows NT, 2000: Replace characters in the middle of a string holding a path with an ellipsis if it is too long to fit in the static control.
SS_REALSIZEIMAGE
Clip an image or bitmap if it does not fit inside the static control instead of resizing the control.
SS_RIGHT
Right-align the text in the static control.
SS_RIGHTJUST
Do not move the lower-right corner of the static control when resizing it to accomodate a bitmap or icon.
SS_SIMPLE
Draw a simple rectangle and display a single line of left-aligned text in the static control.
SS_SUNKEN
Draw a half-sunken border around the static control.
SS_WHITEFRAME
Draw a frame around the static control in the same color as the window background.
SS_WHITERECT
Fill the static control with the same color as the window background.
SS_WORDELLIPSIS
Windows NT, 2000: Truncate text and add ellipses to text which does not fit into the static control.

Constant Definitions

Const SS_BITMAP = &HE Const SS_BLACKFRAME = &H7 Const SS_BLACKRECT = &H4 Const SS_CENTER = &H1 Const SS_CENTERIMAGE = &H200 Const SS_ENDELLIPSIS = &H4000 Const SS_ENHMETAFILE = &HF Const SS_ETCHEDFRAME = &H12 Const SS_ETCHEDHORZ = &H10 Const SS_ETCHEDVERT = &H11 Const SS_GRAYFRAME = &H8 Const SS_GRAYRECT = &H5 Const SS_ICON = &H3 Const SS_LEFT = &H0 Const SS_LEFTNOWORDWRAP = &HC Const SS_NOPREFIX = &H80 Const SS_NOTIFY = &H100 Const SS_OWNERDRAW = &HD Const SS_PATHELLIPSIS = &H8000 Const SS_REALSIZEIMAGE = &H800 Const SS_RIGHT = &H2 Const SS_RIGHTJUST = &H400 Const SS_SIMPLE = &HB Const SS_SUNKEN = &H1000 Const SS_WHITEFRAME = &H9 Const SS_WHITERECT = &H6 Const SS_WORDELLIPSIS = &HC000

Back to the Window Class list.
Back to the Reference section.


Last Modified: October 29, 2000
This page is copyright © 2000 Paul Kuliniewicz. Copyright Information Revised October 29, 2000
Go back to the Windows API Guide home page.
E-mail: vbapi@vbapi.com Send Encrypted E-Mail
This page is at http://www.vbapi.com/ref/other/classes/static.html



Windows API Guide
Windows API Guide - Reference - Volume 1: Version 3.0 For the MS-DOS and PC-DOS Operating Systems
ISBN: B001V0KQIY
EAN: N/A
Year: 1998
Pages: 610

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net