+ wxSizer * const sizerTop = new wxBoxSizer(wxHORIZONTAL);
+ if ( flags & wxICON_MASK )
+ {
+ sizerTop->Add(new wxStaticBitmap
+ (
+ this,
+ wxID_ANY,
+ wxArtProvider::GetMessageBoxIcon(flags)
+ ),
+ wxSizerFlags().Centre().Border());
+ }
+
+ sizerTop->Add(CreateTextSizer(text), wxSizerFlags(1).Border());
+ SetSizerAndFit(sizerTop);