- GetParent()->SetClientSize(2*(TEXT_MARGIN_X + 1) + widthMax,
- 2*(TEXT_MARGIN_Y + 1) + parent->m_textLines.GetCount()*parent->m_heightLine);
+ width = 2*(TEXT_MARGIN_X + 1) + widthMax;
+ height = 2*(TEXT_MARGIN_Y + 1) + m_parent->m_textLines.GetCount()*m_parent->m_heightLine;
+ m_parent->SetClientSize(width, height);
+ SetSize(0, 0, width, height);