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

  1. // ObjectWindows - (C) Copyright 1992 by Borland International
  2.  
  3. #ifndef _EDITBAR_H
  4. #define _EDITBAR_H
  5.  
  6.  
  7. _CLASSDEF(TEditBarWindow)
  8.  
  9. class TEditBarWindow: public TWindow
  10. {
  11.    int SelectedItem;
  12.    RECT EditBarRect;
  13.   public:
  14.    TEditBarWindow(PTWindowsObject AParent, LPSTR ATitle);
  15.    virtual void Paint(HDC, PAINTSTRUCT&);
  16.    virtual void WMLButtonUp(TMessage&) = [WM_FIRST + WM_LBUTTONUP];
  17.    virtual void GetWindowClass(WNDCLASS& WndClass)
  18.    {
  19.       TWindow::GetWindowClass(WndClass);
  20.       WndClass.hbrBackground = (HBRUSH)GetStockObject(LTGRAY_BRUSH);
  21.    }
  22.    int GetSelectedItem()
  23.    {
  24.       return SelectedItem;
  25.    }
  26. };
  27.  
  28.  
  29. #endif // _EDITBAR_H
  30.