I try this code inside constructor of class derived from wxDialog:
wxGridSizer *gs = new wxGridSizer(2, 3, 3);
wxBitmap bitmap = wxBitmap(wxIcon("Question")); gs->Add(new wxStaticBitmap(this, -1, bitmap), 0, wxALIGN_LEFT);
gs->Add(new wxStaticText(this, -1, "Hello, world!"), 1, wxEXPAND);
SetSizerAndFit(gs);
and get no icon showed.( |