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)