ABM_SETSTATE message

Sets the autohide and always-on-top states of the Windows taskbar.

SHAppBarMessage(ABM_SETSTATE, pabd); 

Parameters

pabd

A pointer to an APPBARDATA structure. You must specify the cbSize and hWnd members when sending this message. Data for the desired state is sent in the lParam member using one of the following values.

0

Autohide and always-on-top both off

ABS_ALWAYSONTOP

Always-on-top on, autohide off

ABS_AUTOHIDE

Autohide on, always-on-top off

ABS_AUTOHIDE | ABS_ALWAYSONTOP

Autohide and always-on-top both on

Return value

Always returns TRUE.

Requirements

Requirement Value
Minimum supported client
Windows XP [desktop apps only]
Minimum supported server
Windows Server 2003 [desktop apps only]
Header
Shellapi.h