比如通过句柄获取标题SendMessage( (HWND) hWnd,// handle to destination window WM_GETTEXT, // message to send(WPARAM) wParam,// number of characters to copy(LPARAM) lParam // text buffer)
;char buf[101]={0}
;MessageBoxA(NULL,buf,0,0)
;//显示标题