Software FX Posted December 4, 2001 Report Share Posted December 4, 2001 Hi Could anyone give me an exemple how to use the OleCreatePictureIndirect together with ChartFX, so that I can put picture in the background and onto bars. Thanx, ChrisJ Link to comment Share on other sites More sharing options...
Software FX Posted December 4, 2001 Author Report Share Posted December 4, 2001 Dear Chris, Will you please change your sing-in name, it reads "Software FX" and it may lead people to think that you work for Software FX. Thank you in advance. About your question: Using MFC: CPictureHolder Picture; Picture.CreateFromBitmap(IDB_BITMAP1); m_pChartFX->PutRefBkPicture(Picture.GetPictureDispatch()); Not using MFC: PICTDESC pd; IPictureDisp *pPicture; pd.cbSizeofstruct = sizeof(pd); pd.picType = PICTYPE_BITMAP; pd.bmp.hbitmap = LoadBitmap(g_hInstance,MAKEINTRESOURCE(IDB_BITMAP1)); pd.bmp.hpal = NULL; OleCreatePictureIndirect(&pd,IID_IPictureDisp,TRUE,(LPVOID *) &pPicture); m_pChartFX->PutRefBkPicture(pPicture); -- FP Software FX, Inc. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.