CReBarCtrl::SetPalette
The document is archived and information here might be outdated

CReBarCtrl::SetPalette 

This topic has been updated for Visual Studio 2005 SP1.

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


CPalette* SetPalette( 
   HPALETTE hPal  
);

Parameters

hPal

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

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

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

This section has been updated for Visual Studio 2005 SP1.

This method is not supported in Smart Device projects.

Show:
© 2016 Microsoft