home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c082_122 / 5.ddi / CHECKERS.ZIP / INFO.H < prev    next >
Encoding:
C/C++ Source or Header  |  1992-06-10  |  1.4 KB  |  76 lines

  1. // ObjectWindows - (C) Copyright 1992 by Borland International
  2.  
  3. #ifndef _INFO_H
  4. #define _INFO_H
  5.  
  6. _CLASSDEF(TInfoWindow)
  7. class TInfoWindow: public TWindow
  8. {
  9.     PTStatic Color;
  10.     PTStatic RedInfo;
  11.     PTStatic BlackInfo;
  12.     PTStatic SearchDepth;
  13.     PTStatic Iteration;
  14.     PTStatic Value;
  15.     PTStatic Nodes;
  16.     PTStatic Seconds;
  17.     PTStatic BestLine;
  18.     PTStatic Message;
  19.    RECT InfoRect;
  20.   public:
  21.    TInfoWindow(PTWindowsObject AParent, LPSTR ATitle);
  22.     void SetTurnText(LPSTR text)
  23.         {
  24.       Color->SetText(text);
  25.         }
  26.     void SetRedInfoText(LPSTR text)
  27.         {
  28.         RedInfo->SetText(text);
  29.         }
  30.     void SetBlackInfoText(LPSTR text)
  31.         {
  32.         BlackInfo->SetText(text);
  33.         }
  34.     void SetSearchDepthText(LPSTR text)
  35.         {
  36.         SearchDepth->SetText(text);
  37.         }
  38.     void SetIterationText(LPSTR text)
  39.         {
  40.         Iteration->SetText(text);
  41.         }
  42.     void SetValueText(LPSTR text)
  43.         {
  44.         Value->SetText(text);
  45.         }
  46.     void SetNodeText(LPSTR text)
  47.         {
  48.         Nodes->SetText(text);
  49.         }
  50.     void SetSecondsText(LPSTR text)
  51.         {
  52.         Seconds->SetText(text);
  53.         }
  54.     void SetBestLineText(LPSTR text)
  55.         {
  56.         BestLine->SetText(text);
  57.         }
  58.     void SetMessageText(LPSTR text)
  59.         {
  60.         Message->SetText(text);
  61.         }
  62.    virtual void Paint( HDC PaintDC, PAINTSTRUCT& PaintInfo );
  63.     void DrawInfoFrame(HDC);
  64.     virtual void WMControlColor(TMessage& Msg)
  65.                                 = [WM_FIRST + WM_CTLCOLOR];
  66.    void Reset();
  67.    void IterReset();
  68. };
  69.  
  70.     
  71.  
  72.  
  73.  
  74.  
  75. #endif // _INFO_H
  76.