CXpButton.SetBitmapFromFilemethod
Loads an bitmap from file and sets it as the image of the button.
Syntax
SUB SetBitmapFromFile (BYVAL pwszPath AS WSTRING PTR, BYVAL ImageState AS LONG, BYVAL fRedraw AS LONG = FALSE)
Parameters
| Name | Description | |
|---|---|---|
pwszPath | Full path of the bitmap's file. | |
ImageState | One of the following values: XPBI_NORMAL = 1, XPBI_HOT = 2, XPBI_DISABLED = 3 | |
fRedraw | Optional. CTRUE or FALSE (redraws the button to reflect the changes). |
Description
Loads a bitmap from file and sets it as the image of the button.
Reference
- Defined in AfxNova/CXpButton.inc:1310
- Documented in Windows/Windows GUI/CXpButton Class.md
- Topic: CXpButton Class