It turns out this is completely invalid:
Code: Select all
MyFrame::MyFrame()
{
this->SetParent(NULL);
this->SetId(wxID_ANY);
this->SetTitle("no chained constructor");
this->InitializeUI();
}
Code: Select all
MyFrame::MyFrame() : wxFrame(NULL, wxID_ANY, "")
{
this->InitializeUI();
}
I'm now just wondering, if it's impossible to use the default constructor at all, why do these default constructors exist?
(Or at least, why aren't they private?)
Sorry if this is too philosophical.
This was tested on 3.0.4, but I'm pretty sure the behavior in 3.1.0 is the same.