现在的位置: 首页 > 综合 > 正文

遍历MFC中的CMap及其子类的函数

2013年09月07日 ⁄ 综合 ⁄ 共 204字 ⁄ 字号 评论关闭
CMapStringToPtr map;
POSITION pos = map.GetStartPosition();
while (pos != NULL)
{
 CString strRet;
 CString* pStr = NULL;
 map.GetNextAssoc(pos, strRet, (void *&)pStr);
 if (pChClass != NULL)
 { 
  AfxMessageBox(strRet + *pStr);
 }

抱歉!评论已关闭.