广 告
信息技术应用 >>  VB 6.0截屏源代码
热 

VB 6.0截屏源代码
作者:转载    转贴自:转载    点击数:939    文章录入: zhaizl

Private Declare Function GetDC Lib "user32" (ByVal hwnd As Long) As Long
Private Declare Function BitBlt Lib "gdi32" (ByVal hDestDC As Long, ByVal x As Long, ByVal y As Long, ByVal nWidth As Long, ByVal nHeight As Long, ByVal hSrcDC As Long, ByVal xSrc As Long, ByVal ySrc As Long, ByVal dwRop As Long) As Long
Private Declare Function ReleaseDC Lib "user32" (ByVal hwnd As Long, ByVal hdc As Long) As Long

Private Sub Command1_Click()
Me.Hide
DoEvents
Picture1.Width = Screen.Width
Picture1.Height = Screen.Height
Picture1.AutoRedraw = True
sx = Screen.Width \ Screen.TwipsPerPixelX
sy = Screen.Height \ Screen.TwipsPerPixelY
Shdc = GetDC(0)
BitBlt Picture1.hdc, 0, 0, sx, sy, Shdc, 0, 0, vbSrcCopy
ReleaseDC 0, Shdc
Picture1.AutoRedraw = False
Me.Show

End Sub

  • 上一篇文章: 2010杀毒软件排行榜 附各杀毒软件详细介绍

  • 下一篇文章: 给ueditor编辑器赋值
  •   最新5篇热点文章
      最新5篇推荐文章
      相关文章
    ·给ueditor编辑器赋值[304]
    ·破解遗骨之谜:"埃及艳后"曾残忍…[617]
    ·人类福音:诱导多功能干细胞研究…[617]
    ·奇特太阳系外行星6小时内升温70…[617]
    ·人对物体运动方向感知研究[617]
    ·C# Request.ServerVariables2[697]
    ·Request.ServerVariables[700]
    ·浅析C# List实现原理[702]
    ·浅析C# List实现原理[702]
    ·龙芯3a7000最新进展[702]
    ·给VB.NET开发者的46个忠告[820]
    ·VB2008读写文件[1030]
    ·浅谈VB2008与VB6.0相比的变化[1214]
    ·vb中用winsock控件发信email[2253]
    ·在vb的winsock编程框架[2780]
     
    网友评论:(只显示最新10条。评论内容只代表网友观点,与本站立场无关!)