我看到最新版的QQ是用这个功能来截图的,按下截图的按扭后,MOUSE会变成彩色光标,这些MOUSE的单击事件被拦截,所以除了能画出距形外不会触发任何单击事件,这些我都应该能做到,现在唯一想不到的就是,怎么在非VB的窗体下拉出一个距形来呢?
解决方案 »
- iocomp
- 关闭XP Professinal下会话的问题
- >请问谁有做过VB 与 RS323相关方面的工作? (求资料,代友问)急!!!!!<
- 添加硬件设备后,系统做了那些事情?
- *******QINYUEH(小小) 进来接分********
- 菜鸟问关于SQL SERVER问题
- 请问vb中的API在哪里添加?
- 请看kodak图像缩略图ImgThumbnail例子问题,高分等待,解决问题200分
- VB 打印问题 高手请进急急急
- 说一个刚计算机毕业的人是继续读研究生(已经有学校了),还是工作(在一家通讯公司工作,开发通讯软件,学习氛围非常好)
- 如何打印VB的PictureBOX控件和它上面的控件内容?
- 多线程调用Winsock控件的问题
按下按钮前做好下雨准备,:)'////
Private Declare Function GetDC Lib "user32" (ByVal hwnd As Long) As Long
Private Declare Function PatBlt Lib "gdi32" (ByVal hdc As Long, ByVal x As Long, ByVal y As Long, ByVal nWidth As Long, ByVal nHeight As Long, ByVal dwRop As Long) As Long
Private Const PATINVERT = &H5A0049
Private Sub Command1_Click()
Dim hDCDisp As Long
Dim i As Long
hDCDisp = GetDC(0)
For i = 0 To 100
PatBlt hDCDisp, Rnd * Screen.Width / Screen.TwipsPerPixelX, Rnd * Screen.Height / Screen.TwipsPerPixelY, 3 * Rnd, 100 * Rnd, PATINVERT
Next i
End Sub
收衣服了吗?:)
API CreateDC("DISPLAY",null,nulll,null);
先down
然后移动鼠标
然后up
Option Explicit
Dim bMove As BooleanPrivate Sub Form_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
L1.X1 = X
L1.Y1 = Y
bMove = True
End SubPrivate Sub Form_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
If bMove Then
L1.X2 = X
L1.Y2 = L1.Y1
L2.X1 = X
L2.X2 = X
L2.Y1 = L1.Y1
L2.Y2 = Y
L3.X1 = L1.X1
L3.X2 = X
L3.Y1 = Y
L3.Y2 = Y
L4.X1 = L1.X1
L4.X2 = L1.X1
L4.Y1 = L1.Y1
L4.Y2 = Y
L3.Visible = True
L4.Visible = True
L2.Visible = True
L1.Visible = True
End If
End SubPrivate Sub Form_MouseUp(Button As Integer, Shift As Integer, X As Single, Y As Single)
bMove = False
L1.Visible = False
L2.Visible = False
L3.Visible = False
L4.Visible = False
End Sub