Export (0) Print
Expand All

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(
  [in]  HWND hwnd,
  [in]  BOOL fRequired
);

Parameters

hwnd [in]

Type: HWND

A handle to the button control.

fRequired [in]

Type: BOOL

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.

Requirements

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2008 [desktop apps only]

Header

Commctrl.h

 

 

Community Additions

ADD
Show:
© 2014 Microsoft