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

  1. //----------------------------------------------------------------------------
  2. // ObjectWindows - (C) Copyright 1991, 1993 by Borland International
  3. //----------------------------------------------------------------------------
  4. #ifndef EDITBAR_H
  5. #define EDITBAR_H
  6.  
  7. #ifndef OWL_WINDOW_H
  8. # include <owl\window.h>
  9. #endif
  10.  
  11. class TEditBarWindow : public TWindow {
  12.   public:
  13.     TEditBarWindow(TWindow* parent, const char* title);
  14.     void Paint(TDC& dc, bool erase, TRect& rect);
  15.     void EvLButtonUp(UINT, TPoint&);
  16.  
  17.     void GetWindowClass(WNDCLASS& WndClass) {
  18.       TWindow::GetWindowClass(WndClass);
  19.       WndClass.hbrBackground = (HBRUSH)GetStockObject(LTGRAY_BRUSH);
  20.     }
  21.     int GetSelectedItem() {return SelectedItem;}
  22.  
  23.   private:
  24.     int   SelectedItem;
  25.     TRect EditBarRect;
  26.  
  27.   DECLARE_RESPONSE_TABLE(TEditBarWindow);
  28. };
  29.  
  30. #endif  // EDITBAR_H
  31.