nPrimaryScreenBoundsHeight)
IntPtrDesktopHandle=IntPtrZero
#regionpublicfrmDesktopSnow)构造函数<
summary>
构造函数<
summary>
publicfrmDesktopSnow){InitializeComponent)
thisFormBorderStyle=FormBorderStyleNone
BtnStartSize=newSize
,
)
BtnCloseSize=newSize
,
)
BtnStartLocation=newPoint
,
)
BtnCloseLocation=newPoint
,
)
BtnStartText="
点一下吧"
BtnCloseText="
关闭"
thisSize=newSizeBtnCloseRight,BtnCloseBottom)
thisOpacity=
}#endregion#regionvoidSnowTimer_Tickobjectsender,EventArgse)下雪计时器事件<
summary>
下雪计时器事件<
summary>
<
paramname="
sender"2015最新win7 64位纯净旗舰版下载
>
计时器本身<
param>
<
paramname="
e"
>
计时器参数<
param>
voidSnowTimer_Tickobjectsender,EventArgse){GraphicsDesktopGraphics=GraphicsFromHwndDesktopHandle)
StringText="
圣诞快到了
希望大家身体健康
"
ifConvertToInt
SnowTimerTag)==
)DesktopGraphicsDrawStringText,newFont"
宋体"
,
),newSolidBrushColorRed),newPointFScreenPrimaryScreenBoundsWidth
,ScreenPrimaryScreenBoundsHeight
))
elseDesktopGraphicsDrawStringText,newFont"
宋体"
,
),newSolidBrushColorGreen),newPointFScreenPrimaryScreenBoundsWidth
,ScreenPrimaryScreenBoundsHeight
))
SnowTimerTag=
Co