hello world

获取窗体类名函数

Public Function GetWindowClassName(hWnd As Long) As String
Dim Buff As String
Buff = Space(255)
GetClassName ByVal hWnd, Buff, ByVal Len(Buff)
GetWindowClassName = Left(Buff, InStr(1, Buff, Chr(0)) - 1)
End Function

  

posted @ 2015-09-08 14:22  浩天四哥  阅读(226)  评论(0)    收藏  举报