private SplitterPainter GetPainter() { if(m_Painter==null) { switch(m_Style) { case eSplitterStyle.Office2003: case eSplitterStyle.Office2007: { m_Painter=new SplitterOffice2003Painter(); break; } case eSplitterStyle.Mozilla: { m_Painter=new SplitterMozillaPainter(); break; } } } return m_Painter; }
private void OnStyleChanged() { m_Painter=null; this.Invalidate(); }