X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f4efd805a09f66a9b0213bd8d602f773289fadeb..abd474ea63667f727940a009cc3e0b23ba9f418f:/src/msw/colordlg.cpp diff --git a/src/msw/colordlg.cpp b/src/msw/colordlg.cpp index 7a52b05e9d..788f0fae7c 100644 --- a/src/msw/colordlg.cpp +++ b/src/msw/colordlg.cpp @@ -34,8 +34,6 @@ #include "wx/colour.h" #include "wx/gdicmn.h" #include "wx/utils.h" - #include "wx/dialog.h" - #include "wx/cmndata.h" #include "wx/math.h" #endif @@ -77,7 +75,7 @@ wxColourDialogHookProc(HWND hwnd, { CHOOSECOLOR *pCC = (CHOOSECOLOR *)lParam; wxColourDialog * const - dialog = wx_reinterpret_cast(wxColourDialog *, pCC->lCustData); + dialog = reinterpret_cast(pCC->lCustData); const wxString title = dialog->GetTitle(); if ( !title.empty() ) @@ -152,7 +150,9 @@ int wxColourDialog::ShowModal() // occurred const DWORD err = CommDlgExtendedError(); if ( err ) + { wxLogError(_("Colour selection dialog failed with error %0lx."), err); + } return wxID_CANCEL; }