Form1.frm
资源名称:cs8_gl3.rar [点击查看]
上传用户:hylsl0102
上传日期:2022-03-20
资源大小:3k
文件大小:1k
源码类别:
钩子与API截获
开发平台:
Visual Basic
- VERSION 5.00
- Begin VB.Form Form1
- Caption = "Form1"
- ClientHeight = 5340
- ClientLeft = 60
- ClientTop = 450
- ClientWidth = 13230
- LinkTopic = "Form1"
- ScaleHeight = 5340
- ScaleWidth = 13230
- StartUpPosition = 3 '窗口缺省
- Begin VB.TextBox Text1
- Height = 375
- Left = 600
- TabIndex = 1
- Top = 4680
- Width = 2055
- End
- Begin VB.PictureBox Picture1
- Height = 3855
- Left = 720
- ScaleHeight = 3795
- ScaleWidth = 10635
- TabIndex = 0
- Top = 480
- Width = 10695
- End
- End
- Attribute VB_Name = "Form1"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Private Sub Form_Load()
- Text1 = 0
- '取得Text1控件的句柄
- hwndTextBox = Text1.hwnd
- hwndPict = Picture1.hwnd
- '保存Text1控件的默认窗口消息处理函数地址
- OldWindowProc = GetWindowLong(Text1.hwnd, GWL_WNDPROC)
- OldWindowProc1 = GetWindowLong(Picture1.hwnd, GWL_WNDPROC)
- '将Text1控件的消息处理函数指定为自定义函数NewWindowProc
- Call SetWindowLong(Picture1.hwnd, GWL_WNDPROC, AddressOf NewWindowProc)
- Call SetWindowLong(Text1.hwnd, GWL_WNDPROC, AddressOf NewWindowProc)
- End Sub