thumbnail problem
-
hello sir,, i am using (CThumbCtl1 class) microsoft component .. i created one object of this class in header file (ListView Class) afterthat iam creating thumbnails on view using member function that is my function ... but it is giving the error while Creation time of thumbnails... this is my
int CListFormView::OnCreate(LPCREATESTRUCT lpCreateStruct) { if (CFormView::OnCreate(lpCreateStruct) == -1) return -1; for(int i=0;i<14;i++) { if(!m_Thumb[i].Create(NULL,"strFileName",WS_CHILD|WS_VISIBLE,CRect(10,10,150,150),this,1000+i,0 )) { MessageBox("cant Create Thumb"); } } // TODO: Add your specialized creation code here j=0; return 0; } void CListFormView::DrawThumbnails(CString strFileName) //HANDLE draw the thumbnails in list control { if(!m_Thumb[j].displayFile(strFileName)) { m_Thumb[j].displayFile("D:\\destpreview.bmp"); } m_Thumb[j].BeginWaitCursor(); j++; }
Regards, Srinivas