bAnySet = MImgCtlQueryFlags( hWndCtl, nFlags )
bAnySet = CMImgCtl.QueryFlags( nFlags )

Queries an image control's flags.

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

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

Return
Boolean: TRUE if any of the specified flags are set or FALSE if not.

Example
In this example we determine if an image control has a horizontal scrollbar:

Set bHScroll = NOT MImgCtlQueryFlags( hWndCtl, MIMG_FLAG_NOHSCROLL )

See also
MImgCtlSetFlags

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