设置与获取窗口标题文本

获得:
CString xx="";
CTestView::GetActiveWindow()->GetWindowText(xx);
MessageBox(xx,xx,MB_OK);
设置:
CString xxx="aaaa";
if(GetActiveWindow()==m_hWnd)SetWindowText(str);
//CTestView::GetActiveWindow()->SetWindowText(xxx);

你可能感兴趣的:(获取)