摘要:
此函数是获取控件或者窗口中的文本 代码: TCHAR str1[255]; TCHAR str2[] = L"Hello World"; GetWindowText(hWnd_button, str1, 255); if (_tcscmp(str1, str2) == 0) { //it is ch 阅读全文
摘要:
记录下,用于复现 #include <windows.h> #include <iostream> LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam) { switch (message) { 阅读全文