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)SS_LEFTNOWORDWRAPformatted before it is displayed. Words thatwould extend past the end of a line areautomatically wrapped to the beginning of thenext centered line.Specifies a box with a frame drawn with thesame color as the screen background(desktop). This color is gray in the defaultWindows color scheme.Specifies a rectangle filled with the color usedto fill the screen background. This color isgray in the default Windows color scheme.Designates an icon displayed in the dialogbox. The given text is the name of an icon (nota filename) defined elsewhere in the resourcefile. The n Width and nHeight parameters areignored; the icon automatically sizes itself.Designates a simple rectangle and displays thegiven text flush-left in the rectangle. The textis formatted before it is displayed. Words thatwould extend past the end of a line areautomatically wrapped to the beginning of thenext flush-left line.Designates a simple rectangle and displays thegiven text flush-left in the rectangle. Tabs areexpanded, but words are not wrapped. Textthat extends past the end of a line is clipped.Unless this style is specified, windows willinterpret any "&" characters in the control'stext to be accelerator prefix characters. In thiscase, the "&" is removed and the nextcharacter in the string is underlined. If a staticcontrol is to contain text where this feature isnot wanted, SS_NOPREFIX may be added.This static-control style may be included withany of the defined static controls.You can combine SS_NOPREFIX with otherstyles by using the bitwise OR operator. This ismost often used when filenames or otherstrings that may contain an "&" need to bedisplayed in a static control in a dialog box.Designates a simple rectangle and displays thegiven text flush-right in the rectangle. The textis formatted before it is displayed. Words thatwould extend past the end of a line areautomatically wrapped to the beginning of thenext flush-right line.Designates a simple rectangle and displays asingle line of text flush-left in the rectangle.The line of text cannot be shortened or alteredin any way. (The control's parent window orChapter 4, Functions directory217

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

Saved successfully!

Ooh no, something went wrong!