X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/004f4002877acc09d8bc213602f55b22bdbae345..48889bca6f8b2504f78c0f47b32f5e95c64d915d:/samples/ownerdrw/ownerdrw.cpp?ds=inline diff --git a/samples/ownerdrw/ownerdrw.cpp b/samples/ownerdrw/ownerdrw.cpp index 3446f71c14..de9d8f4cde 100644 --- a/samples/ownerdrw/ownerdrw.cpp +++ b/samples/ownerdrw/ownerdrw.cpp @@ -88,6 +88,9 @@ IMPLEMENT_APP(OwnerDrawnApp) // init our app: create windows bool OwnerDrawnApp::OnInit(void) { + if ( !wxApp::OnInit() ) + return false; + OwnerDrawnFrame *pFrame = new OwnerDrawnFrame(NULL, _T("wxWidgets Ownerdraw Sample"), 50, 50, 450, 340);