MImgCtlQueryAlignFlags

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

bAnySet = MImgCtlQueryAlignFlags( hWndCtl, nFlags )
bAnySet = CMImgCtl.QueryAlignFlags( nFlags )

Queries an image control's align flags.

Parameters
hWndCtl
Window Handle: Window Handle of the image control

nFlags
Number: The flags you want to test for. Any combination of the following constants:

Horizontal flags

MIMG_ALIGN_HCENTER

Centered

MIMG_ALIGN_RIGHT

Right

Vertical flags

MIMG_ALIGN_VCENTER

Centered

MIMG_ALIGN_BOTTOM

Bottom

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

Example
In this example we determine if the image control's image is left aligned:

Set bLeftAligned = NOT MImgCtlQueryAlignFlags( hWndCtl, MIMG_ALIGN_HCENTER | MIMG_ALIGN_RIGHT )

See also
MImgCtlSetAlignFlags

Created with the Personal Edition of HelpNDoc: Single source CHM, PDF, DOC and HTML Help creation