CxImage* CFeedIcoItemListCtrl::GetPng(LPCTSTR lpszPngResource)
{
	if (NULL == lpszPngResource)
		return NULL;

	CxImage* image = new CxImage(CXIMAGE_FORMAT_PNG);
	image->LoadResource(FindResource(NULL, lpszPngResource, _T("PNG")), CXIMAGE_FORMAT_PNG);
	return image;
}
void CToolBarCtrlZ::AddImageIcon(LPCTSTR lpszResource)
{
	CxImage	*pImage = new CxImage;
	pImage->LoadResource(FindResource(NULL, lpszResource, _T("PNG")), CXIMAGE_FORMAT_PNG);
	m_arrImgs.Add(pImage);

	// 同时增加ImageList,否则在SetButtonInfo时,大于button数的Image会被忽略。	<begin>
	CImageList *pil = GetImageList();
	if (NULL == pil)
	{
		m_ilFake.Create(16, 16, ILC_COLOR, 5, 1);
		SetImageList(&m_ilFake);
	}
	if (NULL != pil)
		pil->Add(CTempIconLoader(_T("EMPTY")));
	// 同时增加ImageList,否则在SetButtonInfo时,大于button数的Image会被忽略。	<end>
}
void CToolBarCtrlZ::AddDisableImageIcon(LPCTSTR lpszResource)
{
	CxImage	*pImage = new CxImage;
	pImage->LoadResource(FindResource(NULL, lpszResource, _T("PNG")), CXIMAGE_FORMAT_PNG);
	m_arrDisableImgs.Add(pImage);
}