- unsigned long tmp;
- if (ScanParam(par, wxT("#%lX"), &tmp) != 1)
- return false;
- *clr = wxColour((unsigned char)((tmp & 0xFF0000) >> 16),
- (unsigned char)((tmp & 0x00FF00) >> 8),
- (unsigned char)(tmp & 0x0000FF));
- return true;
- }
- else
- {
- // Handle colours defined in HTML 4.0:
- #define HTML_COLOUR(name,r,g,b) \
- if (str.IsSameAs(wxT(name), false)) \
- { *clr = wxColour(r,g,b); return true; }
+ #define HTML_COLOUR(name, r, g, b) \
+ if (str.IsSameAs(wxSTRING_TEXT(name), false)) \
+ { clr->Set(r, g, b); return true; }