[wx-dev] cant create window of class wxwindowclassnr

Vadim Zeitlin vadim at wxwidgets.org
Sat Feb 2 04:49:28 PST 2008


On Fri, 1 Feb 2008 21:41:44 -0200 Manager <manager at soscpd.net> wrote:

M> I am working in a browser plugin based on wxWidgets. When I try to
M> initialize the GUI on the frame constructor, this message pop up.
M> 
M> Can't create window of class wxwindowclassnr(error 1406...

 Error 1406 is "Cannot create a top-level child window.". So it looks like
you pass a NULL parent HWND to a child window. This can happen if wxTLW
has been just created as a C++ object but its Create() hadn't been called.
It will also happen if you pass NULL to the child window ctor, of course.

 Regards,
VZ





More information about the wx-dev mailing list