00001 #ifndef _GMDI_H_ 00002 #define _GMDI_H_ 00003 00004 class GMdiChild : public GLayout 00005 { 00006 friend class GMdiParent; 00007 00008 class GMdiChildPrivate *d; 00009 00010 public: 00011 GMdiChild(); 00012 ~GMdiChild(); 00013 00014 void OnPaint(GSurface *pDC); 00015 void OnMouseClick(GMouse &m); 00016 void OnMouseMove(GMouse &m); 00017 void Raise(); 00018 void Lower(); 00019 GRect &GetClient(); 00020 bool Pour(); 00021 bool Attach(GView *p); 00022 int OnEvent(GMessage *m); 00023 }; 00024 00025 class GMdiParent : public GLayout 00026 { 00027 class GMdiParentPrivate *d; 00028 00029 GMdiChild *IsChild(GView *v); 00030 00031 public: 00032 GMdiParent(); 00033 ~GMdiParent(); 00034 00035 void OnPaint(GSurface *pDC); 00036 bool Attach(GView *p); 00037 bool OnViewMouse(GView *View, GMouse &m); 00038 bool OnViewKey(GView *View, GKey &Key); 00039 GRect NewPos(); 00040 void OnChildrenChanged(GView *Wnd, bool Attaching); 00041 }; 00042 00043 #endif