#WINAPI.TXT Error
Just a FYI. The function below is incorrect, although it works in cases
where you know both the Class Name and Window Caption of the Window you are
looking for:
Declare Function FindWindow Lib "User" (lpClassName As Any,
lpWindowName As Any) As Integer
It should be:
Declare Function FindWindow Lib "User" (BYVAL lpClassName As Any,
BYVAL lpWindowName As Any) As Integer
With the second declaration, if you don't know the Class Name, you can pass
0& and get any class window with the correct caption.
– Ricks
There is 1 Reply.