X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/06d1d10faf9d2ced2a27156b52e6f3d710a0dd40..489f6cf713b6b5bd9746af238b260c7d13d1dc40:/src/msw/control.cpp diff --git a/src/msw/control.cpp b/src/msw/control.cpp index ee938571d0..63869411c4 100644 --- a/src/msw/control.cpp +++ b/src/msw/control.cpp @@ -154,8 +154,13 @@ bool wxControl::MSWCreateControl(const wxChar *classname, if ( !m_hWnd ) { - wxLogDebug(wxT("Failed to create a control of class '%s'"), classname); - wxFAIL_MSG(_T("something is very wrong, CreateWindowEx failed")); +#ifdef __WXDEBUG__ + wxFAIL_MSG(wxString::Format + ( + _T("CreateWindowEx(\"%s\", flags=%08x, ex=%08x) failed"), + classname, (unsigned int)style, (unsigned int)exstyle + )); +#endif // __WXDEBUG__ return false; } @@ -207,7 +212,7 @@ wxSize wxControl::DoGetBestSize() const // In wxMSW it was only wxSpinCtrl derived from wxSpinButton but in // WinCE of Smartphones this happens also for native wxTextCtrl, // wxChoice and others. -wxSize wxControl::GetBestSpinerSize(const bool is_vertical) const +wxSize wxControl::GetBestSpinnerSize(const bool is_vertical) const { // take size according to layout wxSize bestSize( @@ -354,7 +359,7 @@ WXHBRUSH wxControl::MSWControlColor(WXHDC pDC) { // by default consider that the controls text shouldn't erase the // background under it (this is true for all static controls, check boxes, - // radio buttons, ... + // radio buttons, ...) ::SetBkMode((HDC)pDC, TRANSPARENT); return DoMSWControlColor(pDC, wxNullColour);