Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SetWindowText API call not working properly in VFP3
Message
 
To
01/07/1997 08:40:48
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00038219
Message ID:
00038268
Views:
46
>hi gang,
>
>I'm trying to get rid of the default report preview caption
>(Report designer - somereport.frx)
>After issuing SetWindowText(whandle, 'newcaption') for a window
>created by VFP, 'newcaption' becomes the new caption for the
>specified window as it should - but - it doesn't show up on screen.
>I tried altering the VFP desktop caption the same way and it only changed the caption on taskbar. I can change the caption for *every* other window - so it must be a VFP 3 problem. Or am I missing something here?

I don't think that this is so much VFP as it is Windows. The Report Designer is a child window. While you can retrieve its handle, neither SetWindowText nor GetWindowText work. The latter works with external parent windows, but not with children.

George
George

Ubi caritas et amor, deus ibi est
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform