MImgCtlSetAlignFlags
bOk = MImgCtlSetAlignFlags( hWndCtl, nFlags, bSet )
bOk = CMImgCtl.SetAlignFlags( nFlags, bSet )
Sets or clears an image control's align flags.
Parameters
hWndCtl
Window Handle: Window Handle of the image control.
nFlags
Number: The flags you want to set. 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 |
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 set an image control's image left aligned:
Set bOk = MImgCtlSetAlignFlags( hWndCtl, MIMG_ALIGN_HCENTER | MIMG_ALIGN_RIGHT, FALSE )
See also
MImgCtlQueryAlignFlags
Created with the Personal Edition of HelpNDoc: Free Kindle producer