X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/bbcdf8bc7ca806d8278c7cb6d09d5590378b67d8..1fd8a4504da7215d889e3e6234476581b0ba7adf:/src/msw/colordlg.cpp diff --git a/src/msw/colordlg.cpp b/src/msw/colordlg.cpp index df7bd24b0b..c79f438df9 100644 --- a/src/msw/colordlg.cpp +++ b/src/msw/colordlg.cpp @@ -23,8 +23,10 @@ #ifndef WX_PRECOMP #include #include "wx/defs.h" +#include "wx/bitmap.h" #include "wx/pen.h" #include "wx/brush.h" +#include "wx/colour.h" #include "wx/gdicmn.h" #include "wx/utils.h" #include "wx/frame.h" @@ -34,7 +36,7 @@ #include -#ifndef __WIN32__ +#if !defined(__WIN32__) || defined(__SALFORDC__) || defined(__WXWINE__) #include #endif @@ -87,7 +89,7 @@ int wxColourDialog::ShowModal(void) custColours[i] = RGB(m_colourData.custColours[i].Red(), m_colourData.custColours[i].Green(), m_colourData.custColours[i].Blue()); chooseColorStruct.lStructSize = sizeof(CHOOSECOLOR); - chooseColorStruct.hwndOwner = (HWND) (m_dialogParent ? (HWND) m_dialogParent->GetHWND() : NULL); + chooseColorStruct.hwndOwner = (HWND) (m_dialogParent ? (HWND) m_dialogParent->GetHWND() : (HWND) NULL); chooseColorStruct.rgbResult = RGB(m_colourData.dataColour.Red(), m_colourData.dataColour.Green(), m_colourData.dataColour.Blue()); chooseColorStruct.lpCustColors = custColours;