How to get text from windows controll

Light Poster
3Sep2008,04:33   #1
Izarf's Avatar
I think this is a simple one:
how do I extract the "D:\Backup" from the window in focus?

I see that I get the window handle through HWND GetFocus(VOID);, but how do I access and read the text?

Go4Expert Founder
4Sep2008,10:53   #2
shabbir's Avatar
Use GetWindowText API or the same in Win32 Message to get the window text from the handle you get from the call
Light Poster
9Sep2008,14:48   #3
carl1's Avatar
Quote:
Originally Posted by shabbir
Use GetWindowText API
No, read MSDN to learn basic apis behaviour