Jump to content
Software FX Community

Bitmaps as Background and on Bars...


Software FX

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...