Click to Rate and Give Feedback
MSDN
MSDN Library
User Interface
Windows Controls
Control Library
Button
Macros
 Button_SetElevationRequiredState Ma...
Button_SetElevationRequiredState Macro

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

HeaderDeclared in Commctrl.h
Minimum operating systems Windows Vista
Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks | Privacy Statement | Site Feedback
Page view tracker