Jump to content
Software FX Community

Paint method and bitmap device context


User (Legacy)

Recommended Posts

Hi! 

It seems that the Chart FX paints incorrectly to a bitmap device context.

The attached picture shows the problem.

CDC dc;

dc.CreateDC(_T("DISPLAY"), NULL, NULL, NULL);

CBitmap bmp;

bmp.CreateCompatibleBitmap(&dc, 600, 300);

CDC BmpDc;

BmpDc.CreateCompatibleDC(&dc);

BmpDc.SelectObject(&bmp);

m_pChartFX->Paint((long)BmpDc.m_hDC, 0, 0, 600, 300, CPAINT_PRINT, 0);

Serge

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...