Click here to Skip to main content
15,905,504 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi,
I want to use function of GetWindowText(api) to get WindowsCaption of any window that user work with it.
Can you help me please?
Posted
Updated 9-Sep-12 5:42am
v2

 
Share this answer
 
Comments
rezag 11-Sep-12 10:02am    
Thank you very much
You can use GetFocus() to get Handle of active window (the window is working by user), after that you use GetWindowText() to get caption of that window (the first parameter is the return value of GetFocus()), you can check them (two functions above) on MSDN page. Good luck!
 
Share this answer
 
v4
Comments
rezag 11-Sep-12 10:02am    
thank you very much

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900