CPalette* GetPalette( ) const;
Return Value
A pointer to a CPalette object specifying the rebar control's current palette.
Remarks
Call this member function to retrieve the rebar control's current palette.
Note that this member function uses a CPalette object as its return value, rather than an HPALETTE.
Example
CPalette* pPalette = m_wndReBar.GetReBarCtrl().GetPalette();
if (pPalette)
{
int nEntries = pPalette->GetEntryCount();
CString msg;
msg.Format("Number of palette entries: %d", nEntries);
AfxMessageBox(msg);
}
else
AfxMessageBox("No palette!");
CReBarCtrl Overview | Class Members | Hierarchy Chart
See Also CReBarCtrl::SetPalette