Page 1 of 1

Window Titles

Posted: Sat May 21, 2005 1:13 am
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

Posted: Sat May 21, 2005 1:24 am
by KarLKoX

Code: Select all

Procedure.s getTitle(hWnd)

      title.s = Space(#MAX_PATH)
      GetWindowText_(hWnd, title, #MAX_PATH) 
      ProcedureReturn title
      
EndProcedure

Thanks

Posted: Sat May 21, 2005 1:44 am
by Matt
Thanks! This works perfect!