- wxStaticBox *box = new MyStaticBox(this, -1, m_textBox->GetValue(),
- wxDefaultPosition, wxDefaultSize,
- flagsBox);
- m_sizerStatBox = new wxStaticBoxSizer(box, isVert ? wxHORIZONTAL
- : wxVERTICAL);
+ m_staticBox = new MyStaticBox(this, wxID_ANY, m_textBox->GetValue(),
+ wxDefaultPosition, wxDefaultSize,
+ flagsBox);
+ m_sizerStatBox = new wxStaticBoxSizer(m_staticBox, isVert ? wxHORIZONTAL
+ : wxVERTICAL);