GetWindowText

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

代码:

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

 

posted @ 2020-03-13 17:50  strive-sun  阅读(931)  评论(0编辑  收藏  举报