Re: png
- Posted by Renzo Beggia <1213 at pandora.be> Feb 20, 2003
- 438 views
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