If I understood properly GetWindowText call returns the caption property of a control. Is that true?
I have one problem: I'm trying to make an app that will change the caption of every control mouse moves over.
I use the GetCursorPos call to get the cursors position, then I use WindowFromPointXY call with the position I got from the previous call to get the handle of the object my mouse is on, then I use the SetWindow call to set the caption, but there seems to be a problem here. It changes the caption of a window at once, but the caption of a label stays the same and only when the parent window refreshes the caption changes. I've tried to use the UpdateWindow but I had no results. The strange thing is that when I don't use a variable to store the objects handle, but I write the handle myself it changes without having to refresh the window.
Anybody knows what the heck is the matter whit this.