|
|
1.1.1.2 ! root 1: ! 2: /******************************************************************************\ ! 3: * This is a part of the Microsoft Source Code Samples. ! 4: * Copyright (C) 1993 Microsoft Corporation. ! 5: * All rights reserved. ! 6: * This source code is only intended as a supplement to ! 7: * Microsoft Development Tools and/or WinHelp documentation. ! 8: * See these sources for detailed information regarding the ! 9: * Microsoft samples programs. ! 10: \******************************************************************************/ ! 11: 1.1 root 12: // Porting macros 13: #ifdef WIN32 1.1.1.2 ! root 14: typedef POINTS MPOINT; 1.1 root 15: #define LONG2POINT(l, pt) ((pt).x = (SHORT)LOWORD(l), (pt).y = (SHORT)HIWORD(l)) 16: #else 17: typedef POINT MPOINT; 18: #define LONG2POINT(l, pt) ((pt).x = (INT)LOWORD(l), (pt).y = (INT)HIWORD(l)) 19: #endif 20: 21: 1.1.1.2 ! root 22: #define PALETTESIZE 256 /* Number of entries in the system palette */ 1.1 root 23: 1.1.1.2 ! root 24: typedef struct tagRGPT { /* Values for setting Min Max info */ 1.1 root 25: INT iInfo[10]; 26: } RGPT; 27: typedef RGPT FAR *LPRGPT; 28: 29: extern VOID ShowColor(HWND, HDC);
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.