Go4Expert

Go4Expert (http://www.go4expert.com/)
-   Win32 (http://www.go4expert.com/forums/win32/)
-   -   How to get text from windows controll (http://www.go4expert.com/forums/text-windows-controll-t13536/)

Izarf 3Sep2008 04:33

How to get text from windows controll
 
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?

http://uploader.polorix.net//files/85/getText.JPG

shabbir 4Sep2008 10:53

Re: How to get text from windows controll
 
Use GetWindowText API or the same in Win32 Message to get the window text from the handle you get from the call

carl1 9Sep2008 14:48

Re: How to get text from windows controll
 
Quote:

Originally Posted by shabbir
Use GetWindowText API

No, read MSDN to learn basic apis behaviour


All times are GMT +5.5. The time now is 05:52.