Jump to content
Software FX Community

Re: Paint method and bitmap device context

User (Legacy)

Recommended Posts


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,



PrintRect = (0,0,600,300)

Is there anything else that I'm doing wrong?


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


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


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


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


> --

> Frank



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.

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.


  • Create New...