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.

CreafeWindowTable 4.2: Control classes (continued)SCROLLBARDesignates a rectangle that contains a thumb and hasdirection arrows at both ends. The scroll bar sends anotification message to its parent window wheneverthe user clicks the control. The parent window isresponsible for updating the thumb position, ifnecessary. Scroll-bar controls have the sameappearance and function as scroll bars used in ordinarywindows. Unlike scroll bars, scroll-bar controls can bepositioned anywhere in a window and used wheneverneeded to provide scrolling input for a window.The scroll-bar class also includes size-box controls. Asize-box control is a small rectangle that the user canexpand to change the size of the window.STATICDesignates a simple text field, box, or rectangle that canbe used to label, box, or separate other controls. Staticcontrols take no input and provide no output.Table 4.3Window stylesClassDS_MODALFRAMEDS_SYSMODALWS_BORDERWS_CAPTIONWS_CHILDWS_CHILDWINDOWMeaningSpecifies that edit controls in the dialog boxwill use memory in the application's datasegment. By default, all edit controls in dialogboxes use memory outside the application'sdata segment. This feature may be suppressedby adding the DS_LOCALEDIT flag to theSTYLE command for the dialog box. If thisflag is not used, EM_ GETHANDLE andEM_SETHANDLE messages must not be usedsince the storage for the control is not in theapplication's data segment. This feature doesnot affect edit controls created outside ofdialog boxes.Creates a dialog box with a modal dialog-boxframe that can be combined with a title barand System menu by specifying theWS_CAPTION and WS_SYSMENU styles.Suppresses WM_ENTERIDLE messages thatWindows would otherwise send to the ownerof the dialog box while the dialog box isdisplayed.Creates a system-modal dialog box.Creates a window that has a border.Creates a window that has a title bar (impliesthe WS_BORDER style). This style cannot beused with the WS_DLGFRAME style.Creates a child window. Cannot be used withthe WS_POPUP style.Creates a child window that has theWS_CHILD style.Chapter 4, Functions directory209

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

Saved successfully!

Ooh no, something went wrong!