首页 > Windows开发 > 详细

GetWindowText

时间:2020-03-13 19:20:58      阅读:76      评论:0      收藏:0      [点我收藏+]

此函数是获取控件或者窗口中的文本

代码:

TCHAR str1[255];
TCHAR str2[] = L"Hello World";
GetWindowText(hWnd_button, str1, 255);
if (_tcscmp(str1, str2) == 0)
{
    //it is checkbox
    
}

 

GetWindowText

原文:https://www.cnblogs.com/strive-sun/p/12487917.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!