X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ba88951339bb5ae38d11394b25041b7e019b6883..f4bb632cde9cc60fa89f173f0d33c5881794cc68:/src/palmos/window.cpp diff --git a/src/palmos/window.cpp b/src/palmos/window.cpp index d908c96629..5eba9aed6a 100644 --- a/src/palmos/window.cpp +++ b/src/palmos/window.cpp @@ -269,7 +269,16 @@ bool wxWindowPalm::Create(wxWindow *parent, long style, const wxString& name) { - return false; + wxCHECK_MSG( parent, false, wxT("can't create wxWindow without parent") ); + + if ( !CreateBase(parent, id, pos, size, style, wxDefaultValidator, name) ) + return false; + + parent->AddChild(this); + + InheritAttributes(); + + return true; } FormType *wxWindowPalm::GetFormPtr()