home *** CD-ROM | disk | FTP | other *** search
/ QBasic & Borland Pascal & C / Delphi5.iso / C / BC_502 / OWLINC.PAK / COLOR.H < prev    next >
Encoding:
C/C++ Source or Header  |  1997-05-06  |  868 b   |  29 lines

  1. //----------------------------------------------------------------------------
  2. // ObjectWindows
  3. // Copyright (c) 1991, 1997 by Borland International, All Rights Reserved
  4. //
  5. //$Revision:   10.4  $
  6. //
  7. // Definition of class TColor [Backward compatible header]
  8. //----------------------------------------------------------------------------
  9. #if !defined(OWL_COLOR_H)
  10. #define OWL_COLOR_H
  11.  
  12. #if defined(NO_OWL2_COMPAT)
  13. # pragma message owl/color.h has been replaced by winsys/color.h
  14. #endif
  15. #if !defined(OWL_DEFS_H)
  16. # include <owl/defs.h>
  17. #endif
  18. #if !defined(WINSYS_COLOR_H)
  19. # include <winsys/color.h>
  20. #endif
  21.  
  22. //
  23. // For compatiblity only. See MkRGB in winsys/color.h
  24. //
  25. #define OWLRGB(r,g,b) \
  26.  ((COLORREF)(((uint8)(uint16)(r) | ((uint16)(g)<<8)) | \
  27.                                    (((uint32)(uint8)(uint16)(b))<<16)))
  28. #endif  //  OWL_COLOR_H
  29.