Pelles C forum

C language => Tips & tricks => Topic started by: czerny on December 03, 2014, 09:56:26 am

Title: background image for listview controls
Post by: czerny on December 03, 2014, 09:56:26 am
May be this is usefull!
Title: Re: background image for listview controls
Post by: czerny on December 03, 2014, 11:04:44 am
Code: [Select]
IBBkImg.pszImage = L"res://C:\\ListViewImg.exe/#2/#100";works too! (2 is resource typ for bitmaps, 100 the resource id)

Of course you have to include such a resource and edit the path to test!

But
Code: [Select]
IBBkImg.pszImage = L"res://C:\\ListViewImg.exe/#3/#8001";
// or
IBBkImg.pszImage = L"res://C:\\ListViewImg.exe/#14/#8001";
is not working!
Title: Re: background image for listview controls
Post by: TimoVJL on December 04, 2014, 06:00:09 pm
Nice example.
And with .ulFlags = LVBKIF_SOURCE_NONE; someone can take picture off.