Compartir a través de


CReBarCtrl::SetPalette

Implements the behavior of the Win32 message RB_SETPALETTE, as described in the Windows SDK.

CPalette* SetPalette( 
   HPALETTE hPal  
);

Parameters

  • hPal
    An HPALETTE that specifies the new palette that the rebar control will use.

Return Value

A pointer to a CPalette object specifying the rebar control's previous palette.

Remarks

Note that this member function uses a CPalette object as its return value, rather than an HPALETTE.

Requirements

Header: afxcmn.h

See Also

Concepts

CReBarCtrl Class

CReBarCtrl Members

Hierarchy Chart

CReBarCtrl::GetPalette