13.07.2015 Views

REFERENCE GUIDE

REFERENCE GUIDE

REFERENCE GUIDE

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

CreateWindowTable 4.4: Control styles (continued)LBS_OWNERDRA WFIXEDLBS _ OWNERDRA WV ARIABLELBS_SORTLBS_STANDARDLBS_ USETABSTOPSLBS_WANTKEYBOARDINPUTSCROLLBAR classSBS_BOTTOMALIGNtime by sending a WM_SETREDRA Wmessage.Parent window receives an input messagewhenever the user clicks or double-clicks astring.The owner of the list box is responsible fordrawing its contents; the items in the list boxare the same height.The owner of the list box is responsible fordrawing its contents; the items in the list boxare variable in height.Strings in the list box are sorted alphabetically.Strings in the list box are sorted alphabeticallyand the parent window receives an inputmessage whenever the user clicks or doubleclicksa string. The list box contains borders onall sides.Allows a list box to recognize and expand tabcharacters when drawing its strings. Thedefault tab positions are 32 dialog units. (Adialog unit is a horizontal or vertical distance.One horizontal dialog unit is equal to 1/4 ofthe current dialog base width unit. The dialogbase units are computed based on the heightand width of the current system font. TheGetDialogBaseUnits function returns thecurrent dialog base units in pixels.)The owner of the list box receivesWM_ VKEYTOITEM or WM_CHARTOITEMmessages whenever the user presses a keywhen the list box has input focus. This allowsan application to perform special processingon the keyboard input.Used with the SBS_HORZ style. The bottomedge of the scroll bar is aligned with thebottom edge of the rectangle specified by theX, Y, nWidth, and nHeight parameters given inthe CreateWindow function. The scroll bar hasthe default height for system scroll bars.Designates a horizontal scroll bar. If neitherthe SBS_BOTTOMALIGN norSBS_TOPALIGN style is specified, the scrollbar has the height, width, and position givenin the CreateWindow function.Used with the SBS_ VERT style. The left edgeof the scroll bar is aligned with the left edge ofthe rectangle specified by the X, Y, n Width,and nHeight parameters given in theChapter 4, Functions directory215

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!