VB 获取指定类型的所有窗口标题
(2012-02-11 20:48:57)
标签:
it |
Private Declare Function GetDesktopWindow Lib "user32" () As
Long
Private Declare Function GetForegroundWindow Lib "user32" () As
Long
Private Declare Function GetWindow Lib "user32" (ByVal hwnd As
Long, ByVal wCmd As Long) As Long
Private Declare Function GetWindowText Lib "user32" Alias
"GetWindowTextA" (ByVal hwnd As Long, ByVal lpString As String,
ByVal cch As Long) As Long
Private Declare Function FindWindow Lib "user32" Alias
"FindWindowA" (ByVal lpClassName As Any, ByVal lpWindowName As
String) As Long
Private Const GW_CHILD = 5
Private Const GW_HWNDNEXT = 2
Public Function GetHandle() As Long
End Function
Private Sub Form_Load()
End Sub