MImgCtlSetBackBrush
bOk = MImgCtlSetBackBrush( hWndCtl, nStyle, nColor )
bOk = CMImgCtl.SetBackBrush( nStyle, nColor )
Sets an image control's background brush style and color.
Parameters
hWndCtl
Window Handle: Window Handle of the image control.
nStyle
Number: The brush style. Specify one of the following constants:
MIMG_BRUSH_NONE |
No brush |
|
MIMG_BRUSH_HORIZONTAL |
Horizontal |
|
MIMG_BRUSH_VERTICAL |
Vertical |
|
MIMG_BRUSH_FDIAGONAL |
45-degree upward left-to-right |
|
MIMG_BRUSH_BDIAGONAL |
45-degree downward left-to-right |
|
MIMG_BRUSH_CROSS |
Horizontal and vertical |
|
MIMG_BRUSH_DIAGCROSS |
45-degree cross |
|
nColor
Number: The brush color
Return
Boolean: TRUE if successful or FALSE if an error occurs
Example
In this example a gray 45-degree cross background brush is set:
Set bOk = MImgCtlSetBackBrush( hWndCtl, MIMG_BRUSH_DIAGCROSS, COLOR_Gray )
See also
MImgCtlGetBackBrush
Created with the Personal Edition of HelpNDoc: Easily create CHM Help documents