This topic has not yet been rated Rate this topic

BCM_SETSHIELD message

Sets the elevation required state for a specified button or command link to display an elevated icon. Send this message explicitly or by using the Button_SetElevationRequiredState macro.

Parameters

wParam

Must be zero.

lParam [in]

A BOOL that is TRUE to draw an elevated icon, or FALSE otherwise.

Return value

Returns 1 if successful, or an error code otherwise.

Remarks

An application must be manifested to use comctl32.dll version 6 to gain this functionality.

Requirements

Minimum supported client

Windows Vista

Minimum supported server

Windows Server 2008

Header

Commctrl.h

 

 

Send comments about this topic to Microsoft

Build date: 9/6/2011

Did you find this helpful?
(2000 characters remaining)
Community Content Add
Annotations FAQ
.NET FlatStyle

Don't forget to set the .FlatStyle property for button. If you don't then shield icon doesn't appear.

this.FlatStyle = FlatStyle.System