Jump to content
Software FX Community

Re: Paint method and bitmap device context


User (Legacy)
 Share

Recommended Posts

Frank, 

Thanks for the suggestion but it doesn't appear to work.

When I pass zero instead of CPAINT_PRINT, nothing changes and the bitmap is

the same as in my original post.

I use the following code:

m_pChartFX->Paint( (long)pBmpDC->m_hDC,

PrintRect.left, PrintRect.top,

PrintRect.right, PrintRect.bottom,

0,

NULL);

PrintRect = (0,0,600,300)

Is there anything else that I'm doing wrong?

Serge

"Francisco Padron" <frankp@softwarefx.com> wrote in message

news:DE0379D14694D211B4CE00609770710D0574FA@sftfx-221.wamnet.net...

> Yes. If you use CPAINT_PRINT it will try to get information from the DC

like

> resolution that is not available in a Memory DC. If you want to draw a

chart

> in a bitmap don't use CPAINT_PRINT use ZERO (0) instead.

>

> --

> Frank

> SFX

>

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...