- wxBrush mybrush(wxT("GREY"), (m_HasShading) ? wxTRANSPARENT : wxSOLID);
- wxPen mypen(wxT("GREY"), 1, wxSOLID);
+ wxBrush mybrush(wxT("GREY"), (m_HasShading) ? wxBRUSHSTYLE_TRANSPARENT : wxBRUSHSTYLE_SOLID);
+ wxPen mypen(wxT("GREY"), 1, wxPENSTYLE_SOLID);