// Porting macros #ifdef WIN32 typedef POINTS MPOINT; #define LONG2POINT(l, pt) ((pt).x = (SHORT)LOWORD(l), (pt).y = (SHORT)HIWORD(l)) #else typedef POINT MPOINT; #define LONG2POINT(l, pt) ((pt).x = (INT)LOWORD(l), (pt).y = (INT)HIWORD(l)) #endif #define PALETTESIZE 256 /* Number of entries in the system palette */ typedef struct tagRGPT { /* Values for setting Min Max info */ INT iInfo[10]; } RGPT; typedef RGPT FAR *LPRGPT; extern VOID ShowColor(HWND, HDC);