Jump to content
Software FX Community

Re: Paint method and bitmap device context


User (Legacy)

Recommended Posts

Posted

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

>

Archived

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

×
×
  • Create New...