SystemCollectionsGeneric
usingSystemComponentModel
usingSystemData
usingSystemDrawing
usingSystemText
usingSystemWindowsForms
usingSystemRuntimeInteropServices
usingSystemReflection
usingSystemThreading
namespaceWindowsApplication
{publicpartialclassfrmDesktopSnow
Form{<
summary>
下雪啦<
summary>
[DllImport"
User
dll"
,EntryPoint="
FindWindow"
)]staticexternIntPtrFindWindowstringlpClassName,stringlpWindowName)
[DllImport"
User
dll"
)]staticexternIntPtrFindWindowExIntPtrparent,IntPtrchilde,stringstrclass,stringstrname)
List<
Point>
Sno2o14最新萝卜家园xpsp3系统下载wPoints=newList<
Point>
)
List<
int>
SnowRate=newList<
int>
)
BitmapBmp=newBitmapScreenPrimaryScreenBoundsWidth,ScreenPrimaryScreenBoundsHeight)
IntPtrDesktopHandle=IntPtrZero
#regionpublicfrmDesktopSnow)构造函数<
summary>
构造函数<
summary>
publicfrmDesktopSnow){InitializeComponent)
thisFormBorderStyle=FormBorderStyleNone
BtnStartSize=newSize
,
)
BtnCloseSize=newSize
,
)
BtnStartLocation=newPoint
,
)
BtnCloseLocation=newPoint
,
)
BtnStartText="
点一下吧"
BtnCloseText="
关闭"
thisSize=newSizeBtnCloseRight,BtnCloseBottom)
thisOpacity=
}#en