开发者

How to get data from windows form

开发者 https://www.devze.com 2023-02-11 19:50 出处:网络
开发者_JAVA技巧i wanted to get the value of a TextBox in a form and use it in main.cpp. How would i do this? Sorry if this is unclear i have never used forms. i am using windows 7, VC++ 2010.You send

开发者_JAVA技巧i wanted to get the value of a TextBox in a form and use it in main.cpp. How would i do this? Sorry if this is unclear i have never used forms. i am using windows 7, VC++ 2010.


You send it a WM_GETTEXT message. If it's your form in your process then you will know the window handle. Otherwise you've got to get hold of it by some means.

0

精彩评论

暂无评论...
验证码 换一张
取 消