CString 按想法把字符串分为2半

	CString strScale;
	strScale.Format(_T("1:%d"),m_pBlock->GetBlkScale());

	int iIndex=strTitle.ReverseFind(_T('|'));
	if(iIndex> -1)
	{
		CString str1,str2;
		str1=strTitle.Mid(0,iIndex);
		str1 = L"1/2" + str1;
		str2=strTitle.Mid(iIndex+1,strTitle.GetLength()-iIndex-1);
		str2 = L"1/2" + str2;
	}


posted on 2017-04-27 19:08  wgwyanfs  阅读(149)  评论(0编辑  收藏  举报

导航