General information
Category:
Windows API functions
>>When i call FindWindow api with _Screen.ActiveForm.Caption as second parameter and 0 as first parameter the function returns 0, this is not found. Any ideas??.
>>
>>if i can do this, i will make a function that prints any object in the screen, including entire forms. Only with API programming.
>>
>>Thanks
>>
>>Mauricio Atanache G.
>
>FindWindow doesn't work with child windows. That's why you get that result. If you're using VFP 5.0, do a:
>
>SET LIBRARY TO FOXTOOLS
>
>then:
>
>lnwhandle = _WFindTitl(_SCREEN.ActiveForm.Caption)
>lnHWnd = _WhToHWnd(lnwhandle)
>
>to get the window handle.
>
>hth,
>
>George
Thank you George, i hope i can send you my little routine soon for your concept.
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only