Jump to content
Software FX Community

Bitmaps as Background and on Bars...


Software FX
 Share

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...