添加一个类文件""代码如下:singSystemnamespaceWinwsFrmsApp{pbiccassBaseFrm:Frm{privatePint_mseDwnPsprivateb_mveprtecteverrieviWnPrc(refMessagem){RECTnativeRectswitch{casex:intp=if((pxFFFF)==((px)xFFFF)==x){_mseDwnPs=
_mve=tre}breakcasex:if(_mve){Rectangerect=(this)
nativeRect=newRECT(_,_,(_),
(_))CipCrsr(refnativeRect)}breakcasex:if(_mve){nativeRect=newRECT((this))CipCrsr(refnativeRect)_mve=fase}break}(refm)}[DImprt("")]pbicstaticexternbCipCrsr(refRECTpRect)
[StrctLayt]pbicstrctRECT{pbicintLeftpbicintTppbicintRightpbicintBttmpbicRECT(inteft,inttp,intright,intbttm){Left=eftTp=tp
Right=rightBttm=bttm}pbicRECT(Rectangerect){Left=Tp=Right=Bttm=
}pbicRectangeRect{get{retrnnewRectange(Left,Tp,Right-Left,Bttm-Tp)}}pbicSizeSize{get{retrnnewSize(Right-Left,Bttm-Tp)}}pbicstaticRECTFrmXYWH(intx,inty,intwith,
intheight){retrnnewRECT(x,y,x+with,y+height)}pbicstaticRECTFrmRectange(Rectangerect){retrnnewRECT(,)}}}}。