Help Center›AfxNova
Button_SetImageListXYfunction
Not documented upstream. This symbol was found in the AfxNova source but appears in no documentation topic. The signature below is read directly from the code; any description comes from the source comments.
Syntax
PRIVATE FUNCTION Button_SetImageListXY (BYVAL hButton AS HWND, BYVAL himl AS HIMAGELIST, BYVAL nLeft AS LONG, BYVAL nTop AS LONG, BYVAL nRight AS LONG, BYVAL nBottom AS LONG, BYVAL uALign AS DWORD = 0) AS BOOLEAN
Parameters
| Name | Description | |
|---|---|---|
hButon | = The handle of the button. | |
hImageList | = | |
nLeft | = The x-coordinate of the upper-left corner of the rectangle for the image. | |
nTop | = The y-coordinate of the upper-left corner of the rectangle for the image. | |
nRight | = The x-coordinate of the lower-right corner of the rectangle for the image. | |
nBottom | = The y-coordinate of the lower-right corner of the rectangle for the image. | |
uAlign | = The alignment to use. This parameter can be one of the following values: BUTTON_IMAGELIST_ALIGN_LEFT Align the image with the left margin. BUTTON_IMAGELIST_ALIGN_RIGHT Align the image with the right margin BUTTON_IMAGELIST_ALIGN_TOP Align the image with the top margin BUTTON_IMAGELIST_ALIGN_BOTTOM Align the image with the bottom margin BUTTON_IMAGELIST_ALIGN_CENTER Center the image. The default value is BUTTON_IMAGELIST_ALIGN_LEFT. |
Return value
If the function succeeds, it returns TRUE. Otherwise it returns FALSE. Note: To use this application programming interface (API), you must provide a manifest specifying Comclt32.dll version 6.0.
Reference
- Include file
AfxCtl.inc - Defined in AfxNova/AfxCtl.inc:599