MImgCtlSetFlags

The M!Image Custom Control ›› Functions ››
Parent Previous Next

bOk = MImgCtlSetFlags( hWndCtl, nFlags, bSet )
bOk = CMImgCtl.SetFlags( nFlags, bSet )

Sets or clears an image control's flags.

Parameters
hWndCtl
Window Handle: Window Handle of the image control.

nFlags
Number: The flags you want to set. Any combination of custom control flags.

bSet
Boolean: TRUE to set the specified flags or FALSE to clear them.

Return
Boolean: TRUE if successful or FALSE if an error occured.

Example
In this example we remove an image control's horizontal scrollbar:

Set bOk = MImgCtlSetFlags( hWndCtl, MIMG_FLAG_NOHSCROLL, TRUE )

Remarks
If you set the property "Horizontal scroll" to "No" at design time, the flag MIMG_FLAG_NOHSCROLL is set on control creation.
If you set the property "Vertical scroll" to "No" at design time, the flag MIMG_FLAG_NOVSCROLL is set on control creation.

See also
MImgCtlQueryFlags

Created with the Personal Edition of HelpNDoc: Free EBook and documentation generator