IBandSite::SetBandState method

Set the state of a band in the band site.

Syntax


HRESULT SetBandState(
  [in] DWORD dwBandID,
  [in] DWORD dwMask,
  [in] DWORD dwState
);

Parameters

dwBandID [in]

Type: DWORD

The ID of the band to set. If this parameter is -1, then set the state of all bands in the band site.

dwMask [in]

Type: DWORD

The mask of the states to set.

dwState [in]

Type: DWORD

The state values to be set. These are combinations of BSSF_* flags. For more information, see BANDSITEINFO.

Return value

Type: HRESULT

Returns S_OK if successful, or a COM-defined error code otherwise.

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

Shldisp.h

IDL

Shldisp.idl

DLL

Shell32.dll (version 4.71 or later)

See also

IBandSite
IDeskBand
BANDSITEINFO

 

 

Show: