> Look in the preprocessed source for when wingdi.h is included, and see
> if it is included before or after private.h.

Copy paste from previous post:

> I find the following starting on line 109045

> # 217 "H:/MinGW/msys/1.0/local/include/wx-2.8/wx/msw/private.h"

> inline COLORREF wxColourToRGB(const wxColour& c)
> {
>     return RGB(c.Red(), c.Green(), c.Blue());
> }

> The various references #include wingdi.h lines are near line 26000.

So yes, it seems wingdi is included before we encounter the RGB macro.

P.S. Something about the way you're emailing makes me have to edit the "To" line every time to put the user list back in. Not so with other users' posts.