+
+ // make a sizer to keep the icon centered, in case it is smaller than the
+ // alotted space.
+ wxBoxSizer* sizer = new wxBoxSizer(wxVERTICAL);
+ sizer->Add(0,0,1);
+ sizer->Add(area, 0, wxALIGN_CENTER);
+ sizer->Add(0,0,1);
+ m_iconWnd->SetSizer(sizer);
+