|
-
Feb 8th, 2002, 08:09 PM
#1
FindWindow
Currently I am using the API calls below to find windows, but I need to be more specific. If I know the Window Text AND the Class name, how could I combine it in the API call?
Declare Function FindWindow Lib "User32" Alias _
"FindWindowA" (ByVal lpClassName As String, _
ByVal lpWindowName As String) As Long
Declare Function FindWindowEx Lib "User32" _
Alias "FindWindowExA" (ByVal hWnd As Long, _
ByVal hWndChild As Long, ByVal lpszClassName _
As String, ByVal lpszWindow As String) As Long
IE: Display Properties window has a Window Text "Display Properties" and a class name of "#32770 (Dialoge)". Now keep in mind almost all control panel applets have this class name. (BTW, I am hoping not to use a Windows Enumeration, I got too many in my prog already). For some reason when using FindWindows, you must either search for a window name OR a class name, not both. I tried, but I could not get it t work.
-
Feb 11th, 2002, 02:22 AM
#2
New Member
I know this is a bit late but if you haven’t found the answer yet maybe I can help. If so then clarify a bit I might be able to help.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|