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

  1. //----------------------------------------------------------------------------
  2. // ObjectWindows - (C) Copyright 1991, 1993 by Borland International
  3. //----------------------------------------------------------------------------
  4. #ifndef PVALUE_H
  5. #define PVALUE_H
  6.  
  7. #ifndef OWL_DIALOG_H
  8.   #include <owl/dialog.h>
  9. #endif
  10.  
  11. #define PV_KILLFOCUS     (WM_USER + 100)
  12.  
  13. class TPieceValueDialog : public TDialog {
  14.   public:
  15.     TPieceValueDialog(TWindow* parent, const char* name);
  16.     void SetupWindow();
  17.     LRESULT EvPvKillFocus(WPARAM, LPARAM);
  18.     void CmOk();
  19.     void EvHScroll(UINT scrollCode, UINT thumbPos, HWND hWndCtl);
  20.     LRESULT EvCommand(UINT, HWND, UINT);
  21.     void CmDefault();
  22.  
  23.   private:
  24.     int  Values[5];
  25.     void PVSetFocus(HWND);
  26.     BOOL GetColorValue(WORD);
  27.     
  28.   DECLARE_RESPONSE_TABLE(TPieceValueDialog);
  29. };
  30.  
  31. #endif  // __PVALUE_H
  32.