= setCtlProperties =
== Syntax == int setCtlProperties(int n, int properties) == Arguments == :n ::The index of the control whose properties you wish to change. :properties ::The properties you wish to set in the control. == Return == Returns an integer with the previous properties before they were change by the function, or -1 if the control number is out of range or if the control doesn't exist. == Description == This function sets the properties of a control. The properties to be set should be specified in the second argument. To remove a property from a control, use clearCtlProperties. The following properties are available: *CTP_PREVIEWDRAG *CTP_MOUSEMOVE *CTP_DRAWITEM *CTP_CONTEXTMENU *CTP_MOUSEOVER *CTP_EXTENDEDUI *CTP_SIDE_MASK *CTP_RIGHT *CTP_LEFT *CTP_BOTTOM *CTP_TOP *CTP_ORIENT_MASK *CTP_VERT *CTP_HORZ *CTP_READONLY *CTP_TRACK == Example == <code> // Enable tracking for this control setCtlProperties(6, CTP_TRACK); </code> == See Also == |