home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / df3os2.zip / FRAME.H < prev    next >
C/C++ Source or Header  |  1993-09-14  |  658b  |  32 lines

  1. // -------- frame.h 
  2.  
  3. #ifndef FRAME_H
  4. #define FRAME_H
  5.  
  6. #include "dfwindow.h"
  7.  
  8. class Frame : public DFWindow    {
  9.     DFWindow *Host;        // window being moved or sized
  10.     int diff;            // difference between mouse x and window corner
  11.     int minx, maxx;        // x limits
  12.     int miny, maxy;        // y limits
  13.     Bool moving;        // True = moving, False = sizing
  14.     void Paint() {}
  15.     void LeftButton(int mx, int my);
  16.     void ButtonReleased(int mx, int my);
  17.     void MouseMoved(int mx, int my);
  18.     void Show();
  19.     void Hide();
  20.     virtual void Keyboard(int key);
  21.     void CloseFrame(Bool doOp);
  22. public:
  23.     Frame();
  24.     void OpenFrame(DFWindow *Wnd, Bool Moving, int mx);
  25. };
  26.  
  27. #endif
  28.  
  29.  
  30.  
  31.  
  32.