From: Vadim Zeitlin on
On Thu, 20 Mar 2008 20:00:53 +0100 SasQ <sasq1(a)go2.pl> wrote:

S> On Thu, 20 Mar 2008 19:22:46 +0100, Vadim Zeitlin wrote:
S>
S> > It creates the underlying window object. You must use Create()
S> > if you used the default ctor to create the C++ object
S>
S> You mean that the default ctor doesn't create any frame yet?

No.

S> > if you use the non-default ctor then the underlying window
S> > object was created as well and you can't call Create() again.
S>
S> Will something wrong happen if I mistakenly call Create() after
S> using parametrized ctor?

Yes.

S> Though I still wonder when I may want to use default ctor + Create()
S> instead of simply calling the parametrized ctor? Are there any
S> situations where I have to use ctor + Create() instead?
S> [that's exactly the question about purpose from my 1st post].

Sometimes it's more convenient to use the default ctor. If you can use the
ctor with arguments, do go ahead and use it.

Regards,
VZ

--
TT-Solutions: wxWidgets consultancy and technical support
http://www.tt-solutions.com/


---------------------------------------------------------------------
To unsubscribe, e-mail: wx-users-unsubscribe(a)lists.wxwidgets.org
For additional commands, e-mail: wx-users-help(a)lists.wxwidgets.org