- // 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)
- {
- // draw either a regular or dropdown toggle button
- if (!item.dropdown)
+ case wxITEM_NORMAL:
+ // draw a regular or dropdown button
+ if (!item.m_dropDown)
+ m_art->DrawButton(dc, this, item, item_rect);
+ else
+ m_art->DrawDropDownButton(dc, this, item, item_rect);
+ break;
+
+ case wxITEM_CHECK:
+ case wxITEM_RADIO:
+ // draw a toggle button