GetWindowText

时间:2020-03-13 18:56:29   收藏:0   阅读:61

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

代码:

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

 

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!