GetWindowText

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

代码:

TCHAR str1[255];
TCHAR str2[] = L"Hello World";
GetWindowText(hWnd_button, str1, 255);
if (_tcscmp(str1, str2) == 0)
{
    //it is checkbox
    
}
原文地址:https://www.cnblogs.com/strive-sun/p/12487917.html