ints=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=
}#endrexp系统下载sp2gion#regionvoidSnowTimer_Tickobjectsender,EventArgse)下雪计时器事件<
summary>
下雪计时器事件<
summary>
<
paramname="
sender"
>
计时器本身<
param>
<
paramname="
e"
>
计时器参数<
param>
voidSnowTimer_Tickobjectsender,EventArgse){GraphicsDesktopGraphics=GraphicsFromHwndDesktopHandle)
StringText="
圣诞快到了
希望大家身体健康
"
ifConvertToInt
SnowTimerTag)==
)DesktopGraphicsDrawStringText,newFont"
宋体"
,
),newSolidBrushColorRed),newPointFScreenPrimaryScreenBoundsWidth
,ScreenPrimaryScreenBoundsHeight
))
elseDesktopGraphicsDrawStringText,newFont"
宋