CString strNotePadPath("D:\\svnfile\\KSRecorder\\KSRecord.sln");
SHFILEINFO stFileInfo;
:: SHGetFileInfo( strNotePadPath,0,&stFileInfo,sizeof(stFileInfo),SHGFI_ICON);
::SendMessage(this->m_hWnd,WM_SETICON,ICON_SMALL,(LPARAM)stFileInfo.hIcon);
CString strNotePadPath("D:\\svnfile\\KSRecorder\\KSRecord.sln");
SHFILEINFO stFileInfo;
:: SHGetFileInfo( strNotePadPath,0,&stFileInfo,sizeof(stFileInfo),SHGFI_ICON);
::SendMessage(this->m_hWnd,WM_SETICON,ICON_SMALL,(LPARAM)stFileInfo.hIcon);
转载于:https://www.cnblogs.com/longcheng2012/archive/2012/11/01/2749215.html