CReBarCtrl::SetPalette

CPalette* SetPalette( HPALETTE hPal );

Return Value

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

Parameters

hPal

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

Remarks

This member function implements the behavior of the Win32 message RB_SETPALETTE, as described in the Platform SDK.

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

CReBarCtrl OverviewClass MembersHierarchy Chart

See Also   CReBarCtrl::GetPalette