- if (item.kind == wxITEM_SEPARATOR)
- {
- // draw a separator
- m_art->DrawSeparator(dc, this, item_rect);
- }
- else if (item.kind == wxITEM_LABEL)
- {
- // draw a text label only
- m_art->DrawLabel(dc, this, item, item_rect);
- }
- else if (item.kind == wxITEM_NORMAL)
- {
- // draw a regular button or dropdown button
- if (!item.dropdown)
- m_art->DrawButton(dc, this, item, item_rect);
- else
- m_art->DrawDropDownButton(dc, this, item, item_rect);
- }
- else if (item.kind == wxITEM_CHECK)