Window Titles

Windows specific forum
Matt
Enthusiast
Enthusiast
Posts: 447
Joined: Sat May 21, 2005 1:08 am
Location: USA

Window Titles

Post by Matt »

If I have a window handle, how will I be able to get the title caption text of the window? (something like GetWindowText_ , but I cannot figure out how to get the caption text)

- Matt
KarLKoX
Enthusiast
Enthusiast
Posts: 681
Joined: Mon Oct 06, 2003 7:13 pm
Location: France
Contact:

Post by KarLKoX »

Code: Select all

Procedure.s getTitle(hWnd)

      title.s = Space(#MAX_PATH)
      GetWindowText_(hWnd, title, #MAX_PATH) 
      ProcedureReturn title
      
EndProcedure
"Qui baise trop bouffe un poil." P. Desproges

http://karlkox.blogspot.com/
Matt
Enthusiast
Enthusiast
Posts: 447
Joined: Sat May 21, 2005 1:08 am
Location: USA

Thanks

Post by Matt »

Thanks! This works perfect!
Post Reply