home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / ool_main.zip / ool / include / xmdicli.h < prev    next >
C/C++ Source or Header  |  1998-03-20  |  2KB  |  39 lines

  1. #ifndef __OOL_MDICLIENT_H__
  2. #define __OOL_MDICLIENT_H__
  3.  
  4. /*===========================================================================*/
  5. /* OOL ------------------- the Open Object Library ------------------- r 1.0 */
  6. /*===========================================================================*/
  7. /*                              class: XMDIClient                            */
  8. /*                       derived from: XFrameWindow                          */
  9. /*                        last update: 5/97                                  */
  10. /*                      programmed by: Stefan von Brauk (sbrauk@gwdg.de)     */
  11. /*===========================================================================*/
  12.  
  13.  
  14. #include "xscrlwnd.h"
  15. class XMDIServer;
  16.  
  17. class _export_ XMDIClient: public XScrollWindow
  18. {
  19.       friend XMDIServer;
  20.       XMDIServer * owner, * test;
  21.       LONG GetID() { return ids; }
  22.       LONG ids;
  23.       void SetID(LONG i) { ids = i; }
  24.       void Setup( const XMDIServer * p, const XRect * rect);
  25.    public:
  26.       XMDIClient( const XMDIServer * p, const XResource * r, const char * title="", const LONG style = XFrameWindow::defaultStyle | FRM_ICON, const XRect& rec = XRect(), const BOOL build=FALSE): XScrollWindow( r, title, XFrameWindow::defaultStyle | FRM_ICON, rec, (XFrameWindow*) p, build)
  27.          { Setup(p, &rec);   }
  28.       XMDIClient( const XMDIServer * p, const ULONG id, const char * title="", const LONG style = XFrameWindow::defaultStyle | FRM_ICON, const XRect& rec = XRect(), const BOOL build=FALSE): XScrollWindow( id, title, XFrameWindow::defaultStyle | FRM_ICON, rec, (XFrameWindow*)p, build)
  29.          { Setup(p, &rec);   }
  30.       ~XMDIClient();
  31.       virtual BOOL DoSysCommand( USHORT syscom);
  32.       virtual void FocusChanged( BOOL );
  33.       virtual void UpdateMenu(XMenuBar*) {;}
  34.       virtual void SetText( const char *);
  35.       XMDIServer * GetOwner() { return owner; }
  36. };
  37.  
  38. #endif
  39.