Hi,
I'm having a problem with the wxDocMDIParentFrame class. I'd like to be able
to override wxMDIParentFrame::OnCreateClient. To do that, you need to use
the default constructor for wxMDIParentFrame and then call Create() with the
params.
The problem is that wxDocMDIParentFrame just uses the constructor with the
params. Is there a way to get bypass the wxDocMDIParentFrame constructor?
I've tried variations on the following:
...
public:
wxPlDocMDIParentFrame(const char* package, wxDocManager* manager,
wxFrame *parent, wxWindowID id, const wxString& title,
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, long style =
wxDEFAULT_FRAME_STYLE,
const wxString& name = "frame")
: wxDocMDIParentFrame(manager, parent, id, title, pos, size,
style, name),
m_callback( "Wx::DocMDIParentFrame" )
{
Create(parent, id, title, pos, size, style, name);
m_docManager = manager;
m_callback.SetSelf( wxPli_make_object( this, package ), TRUE);
}
...
If there isn't a way to do this, do you think I should suggest to the
wxwindows dev team that wxDocMDIParentFrame use the two stage constuctor by
default?
Thanks
Simon
BBCi at http://www.bbc.co.uk/
This e-mail (and any attachments) is confidential and may contain
personal views which are not the views of the BBC unless specifically
stated.
If you have received it in error, please delete it from your system, do
not use, copy or disclose the information in any way nor act in
reliance on it and notify the sender immediately. Please note that the
BBC monitors e-mails sent or received. Further communication will
signify your consent to this.
|