CListCtrl does not render well elements' image

2019-08-03 02:03发布

I have a CListCtrl and a Picture control and both are rendering the images wrongly. It is happenning for PNG images loaded through CImage::Load

enter image description here

The images are scaled down and have a vertical lines background that should not appear.

1条回答
闹够了就滚
2楼-- · 2019-08-03 02:09

It turns out there is the need of a manifest, which I added to stdafx.h

#pragma comment(linker,"/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='*' publicKeyToken='6595b64144ccf1df' language='*'\"")

enter image description here

查看更多
登录 后发表回答