CReBarCtrl::GetPalette
Retrieves the rebar control's current palette.
CPalette* GetPalette( ) const;
Возвращаемое значение
A pointer to a CPalette object specifying the rebar control's current palette.
Заметки
Note that this member function uses a CPalette object as its return value, rather than an HPALETTE.
Пример
CPalette* pPalette = m_wndReBar.GetReBarCtrl().GetPalette();
if (pPalette)
{
int nEntries = pPalette->GetEntryCount();
CString msg;
msg.Format(_T("Number of palette entries: %d"), nEntries);
AfxMessageBox(msg);
}
else
{
AfxMessageBox(_T("No palette!"));
}
Требования
Header: afxcmn.h