CButton.SetElevationRequiredStatemethod
Sets the elevation required state for a specified button or command link to display an elevated icon.
Syntax
FUNCTION SetElevationRequiredState (BYVAL fRequired AS BOOLEAN) AS LONG
Parameters
| Name | Description | |
|---|---|---|
fRequired | A BOOL that is TRUE to draw an elevated icon, or FALSE otherwise. |
Return value
Returns 1 if successful, or an error code otherwise.
Description
Sets the elevation required state for a specified button or command link to display an elevated icon.
Remarks
An application must be manifested to use comctl32.dll version 6 to gain this functionality.
Example
CButton.SetElevationRequiredState(hButton, TRUE)
Reference
- Include file
CButton.inc - Defined in AfxNova/CButton.inc:584
- Documented in Windows/WIndows Controls/CButton Class.md
- Topic: CButton Class