#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
{
CHOOSECOLOR *pCC = (CHOOSECOLOR *)lParam;
wxColourDialog * const
- dialog = wx_reinterpret_cast(wxColourDialog *, pCC->lCustData);
+ dialog = reinterpret_cast<wxColourDialog *>(pCC->lCustData);
const wxString title = dialog->GetTitle();
if ( !title.empty() )
// occurred
const DWORD err = CommDlgExtendedError();
if ( err )
+ {
wxLogError(_("Colour selection dialog failed with error %0lx."), err);
+ }
return wxID_CANCEL;
}
// transfer the values chosen by user back into m_colourData
for ( i = 0; i < WXSIZEOF(custColours); i++ )
{
- wxRGBToColour(m_colourData.GetCustomColour(i), custColours[i]);
+ wxRGBToColour(m_colourData.m_custColours[i], custColours[i]);
}
wxRGBToColour(m_colourData.GetColour(), chooseColorStruct.rgbResult);