Sets the elevation required state for a specified button or command link to display an elevated icon. Use this macro or send the BCM_SETSHIELD message explicitly.
Syntax
LRESULT Button_SetElevationRequiredState(
HWND hwnd,
BOOL fRequired
);
Parameters
- hwnd
-
[in] A handle to the button control.
- fRequired
-
[in] TRUE to draw an elevated icon, or FALSE otherwise.
Return Value
Returns 1 if successful, or an error code otherwise.
Remarks
An application must use comctl32.dll version 6 to gain this functionality.
Macro Information
| Header | Declared in Commctrl.h |
|---|
| Minimum operating systems |
Windows Vista |
|---|