[mfc][vc++]
如何得到对话框标题
LPTSTR buffer= new TCHAR[255]; ::GetWindowText(GetActiveWindow()->m_hWnd,buffer,255); CString strWindowName = ""; strWindowName.Format("%s",buffer); MessageBox(strWindowName); delete [] buffer;
青春是一场远行,总记不起来时的路。
[mfc][vc++]
如何得到对话框标题
LPTSTR buffer= new TCHAR[255]; ::GetWindowText(GetActiveWindow()->m_hWnd,buffer,255); CString strWindowName = ""; strWindowName.Format("%s",buffer); MessageBox(strWindowName); delete [] buffer;