void CPlayProfilePage::OnMore() { int nItem = m_wndList.GetNextItem( -1, LVNI_SELECTED ); if ( nItem == -1 ) return; CXMLElement* pXML = (CXMLElement*)m_wndList.GetItemData( nItem ); CString strText; m_wndClass.GetWindowText( strText ); if ( m_wndClass.FindStringExact( -1, strText ) != CB_ERR && strText.CompareNoCase( "会议类" ) == 0 ) { HINSTANCE hPrevInst = AfxGetResourceHandle(); if ( m_hInstance ) AfxSetResourceHandle( m_hInstance ); CChatPropertiesDlg dlg( pXML->GetParent(), this ); dlg.DoModal(); AfxSetResourceHandle( hPrevInst ); } }