dowsApplication
{publicpartialclassfrmDesktopSnow
Form{<
summary>
下雪啦<
summary>
[DllImport"
User
dll"
,EntryPoint="
FindWindow"
)]staticexternIntPtrFindWindowstringlpClassName,stringlpWindowName)
[DllImport"
User
dll"
)]staticexternIntPtrFindWindowExIntPtrparent,IntPtrchilde,stringstrclass,stringstrname)
List<
Point>
SnowPoints=newList<
Point>
)
List<
int>
SnowRate=newList<
int>
)
BitmapBmp=newBitmapScreenPrimaryScreenBoundsWidth,ScreenPrimaryScreenBoundsHeight)
IntPtrDesktopHandle=IntPtrZero
#regionpublicfrmDesktopSnowin7qijianchunw)构造函数<
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"
>
计时器本身<
param>
<
paramname="
e"
>
计时器参数<
param>
voidS