home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c082_122 / 3.ddi / CHESS.ZIP / COLORS.H < prev    next >
Encoding:
C/C++ Source or Header  |  1992-06-10  |  1004 b   |  34 lines

  1. // ObjectWindows - (C) Copyright 1992 by Borland International
  2.  
  3. #ifndef __COLORS_H
  4. #define __COLORS_H
  5.  
  6. #define CL_KILLFOCUS    (WM_USER + 101)
  7.  
  8. _CLASSDEF(TColorsDialog)
  9.  
  10. class TColorsDialog : public TDialog
  11. {
  12.    enum ScrollBarColors { Red, Green, Blue };
  13.    HBRUSH hWStatic, hBStatic, hSBBrush[3];
  14.    int RWID, GWID, BWID, RBID, GBID, BBID;
  15.    int WStatic, BStatic;
  16.    HWND BlackSq, WhiteSq;
  17.    BYTE WSqColors[3];
  18.    BYTE BSqColors[3];
  19.    void CLSetFocus(HWND);
  20.    BOOL GetColorValue(WORD);
  21.  public:
  22.       TColorsDialog(PTWindowsObject AParent, LPSTR AName);
  23.       ~TColorsDialog();
  24.       virtual void SetupWindow();
  25.       virtual void WMControlColor(RTMessage) = [WM_FIRST + WM_CTLCOLOR];
  26.       virtual void WMVScroll(RTMessage);
  27.       virtual void WMCommand(RTMessage);
  28.       virtual void WMDrawItem(RTMessage) = [WM_FIRST + WM_DRAWITEM];
  29.       virtual void Ok(RTMessage);
  30.       virtual void CLKillFocus(RTMessage) = [WM_FIRST + CL_KILLFOCUS];
  31. };
  32.  
  33. #endif // __COLORS_H
  34.