<< Click to Display Table of Contents >> Navigation: ThinBASIC Modules > UIAdv (Advanced User Interface module) > XPBUTTON Control > XPBUtton_SetBitmap |
Description
Loads a bitmap from file and sets it as the image of the button
Syntax
lretCode = XPButton_SetBitmap(hwnd, ctrlID, sPath, ImageState [, Redraw])
Returns
Number.
Parameters
Name |
Type |
Optional |
Meaning |
hWnd |
Number |
No |
Handle of the dialog containing the control |
ctrlID |
Number |
No |
Control identifier |
sPath |
String |
No |
Full path to the bitmap image file. |
ImageState |
Number |
No |
One of the following equates: %XPBUTTON_NORMAL %XPBUTTON_HOT %XPBUTTON_DISABLED |
Redraw |
Number |
Yes |
%TRUE or %FALSE to force a redraw of the control |
Remarks
Restrictions
See also
Examples