WEB开发网
开发学院软件开发VB 桌面屏幕翻转 阅读

桌面屏幕翻转

 2006-02-27 21:13:24 来源:WEB开发网   
核心提示:PRivateDeclareFunctionGetDesktopWindowLib"user32"()AsLongPrivateDeclareFunctionGetDCLib"user32"(ByValhwndAsLong)AsLongPrivateDeclareFunction
PRivateDeclareFunctionGetDesktopWindowLib"user32"()AsLong
PrivateDeclareFunctionGetDCLib"user32"(ByValhwndAsLong)AsLong
PrivateDeclareFunctionStretchBltLib"gdi32"_
(ByValhdcAsLong,_
ByValxAsLong,_
ByValyAsLong,_
ByValnWidthAsLong,_
ByValnHeightAsLong,_
ByValhSrcDCAsLong,_
ByValxSrcAsLong,_
ByValySrcAsLong,_
ByValnSrcWidthAsLong,_
ByValnSrcHeightAsLong,_
ByValdwRopAsLong)AsLong

PrivateSubForm_KeyDown(KeyCodeAsInteger,ShiftAsInteger)
End
EndSub

PrivateSubForm_Load()
’settheshowintaskbarpropertytofalse
’settheborderstyleoftheformtonone
Form1.AutoRedraw=True
Form1.ScaleMode=vbPixels
a=GetDesktopWindow()
b=GetDC(a)
StretchBltForm1.hdc,0,0,Screen.Width,Screen.Height,b,0,_
Screen.Height,Screen.Width,-Screen.Height,vbSrcCopy
EndSub->

Tags:桌面 屏幕 翻转

编辑录入:爽爽 [复制链接] [打 印]
赞助商链接