home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 22 gnu / 22-gnu.zip / spmio10.zip / gcc2 / stdwin / framectl.h < prev    next >
C/C++ Source or Header  |  1994-06-05  |  668b  |  27 lines

  1. #ifndef include_framectl_h
  2. #define include_framectl_h
  3.  
  4. #include <stdframe.h>
  5.  
  6. class FrameControl: protected StdFrame
  7. {
  8.   typedef StdFrame inherited;
  9.   enum FrameControlMode {
  10.     frmctl_mode_normal,
  11.     frmctl_mode_absolute,
  12.   };
  13.   int width, height;
  14.   int screen_width, screen_height;
  15.   FrameControlMode mode;
  16.   int resize_lockout;
  17.   virtual void framemsg_windowposchanged (SWP *, unsigned);
  18.   virtual int framemsg_querytrackinfo (unsigned short, TRACKINFO *);
  19. public:
  20.   FrameControl ();
  21.   void set_behavior_normal ();
  22.   void set_exact_size (int awidth, int aheight);
  23.   virtual void attach (HWND aframe);
  24. };
  25.  
  26. #endif /* include_framectl_h */
  27.