///////////////////////////////////////////////////////////////////////////// // // This file is Copyright 1992,1993 by Warwick W. Allison. // This file is part of the gem++ library. // You are free to copy and modify these sources, provided you acknowledge // the origin by retaining this notice, and adhere to the conditions // described in the file COPYING.LIB. // ///////////////////////////////////////////////////////////////////////////// #include #include "gemo.h" #include "gema.h" #include "gemd.h" GEMdesktop::GEMdesktop(GEMactivity& in, const GEMrsc& rsc, int RSCindex) : GEMformwindow(in,rsc,RSCindex,-1) { int x,y,w,h; wind_get(0,WF_WORKXYWH,&x,&y,&w,&h); Obj->ob_x=x; Obj->ob_y=y; Obj->ob_width=w; Obj->ob_height=h; form_dial(FMD_START,0,0,0,0,Obj->ob_x,Obj->ob_y,Obj->ob_width,Obj->ob_height); wind_set(0,WF_NEWDESK,Obj,0); form_dial(FMD_FINISH,0,0,0,0,Obj->ob_x,Obj->ob_y,Obj->ob_width,Obj->ob_height); } GEMdesktop::~GEMdesktop() { wind_set(0,WF_NEWDESK,0); } bool GEMdesktop::IsOpen() const { return TRUE; }