-
-
CFileDialog类源代码问题?
-
发表于:
2012-3-28 20:33
4742
-
void CFileDialog::ApplyOFNToShellDialog()
{
...
// m_ofn.lpstrFilter
if(m_ofn.lpstrFilter != NULL)
{
UINT nFilterCount = 0;
LPCTSTR lpstrFilter = m_ofn.lpstrFilter;
while(lpstrFilter[0])
{
lpstrFilter += _tcslen(lpstrFilter)+1;
lpstrFilter += _tcslen(lpstrFilter)+1;
nFilterCount ++;
}
if (nFilterCount > 0)
{
...
}
注意while一段,想看看有没有搞错?
[注意]传递专业知识、拓宽行业人脉——看雪讲师团队等你加入!