Re: png

new topic     » topic index » view thread      » older message » newer message

I would like to show png or gif in listviews

i found this , but how can i use this in Euphoria

ListView controls have the capability to display JPEG, PNG, GIF, BMP, 
WMF and EMF images.

To use them as simple image controls, it is sufficient to send them a 
message as in the following example (where hCtlListView1 is the handle 
of the ListView control and where szFileName is the FULL path of the 
image file to be displayed). 

LVBKIMAGE lv;
ZeroMemory(&lv, sizeof(lv));
lv.ulFlags = LVBKIF_STYLE_NORMAL | LVBKIF_SOURCE_URL;
lv.pszImage = szFileName;//full path required
lv.cchImageMax = lstrlen(szFileName); //unnecessary?
ListView_SetBkImage(hCtlListView1, &lv); 


Renzo from Belgium

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu