How to get text from windows controll

Izarf's Avatar
Light Poster
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?

0
shabbir's Avatar, Join Date: Jul 2004
Go4Expert Founder
Use GetWindowText API or the same in Win32 Message to get the window text from the handle you get from the call
0
carl1's Avatar
Light Poster
Quote:
Originally Posted by shabbir
Use GetWindowText API
No, read MSDN to learn basic apis behaviour