CImage 加载图片的问题
我在OPaint()函数的else模块写的代码
CPaintDC dc(this);
if (!img.IsNull()) img.Destroy();
img.Load(_T("img/bg.png"));
if (!img.IsNull())
{
int cx = img.GetWidth();
int cy = img.GetHeight();
img.Draw(dc.m_hDC, 0,0,cx,cy);
}
能加载图片,但为什么加载的图片会变小了,怎么让加载的图片与实际的图片一样大