This comes from "rv ListView Tips and Tricks" bag 
Tested on 2000 and Me.
If it does not work, try update the common controls dll.
If it stills not working, sorry...
Regards,
RValois.
------------------
http://www.rvalois.com.br/downloads/free/
[This message has been edited by Roberto Valois (edited June 18, 2004).]

Tested on 2000 and Me.
If it does not work, try update the common controls dll.
If it stills not working, sorry...
Code:
#Include "win32api.inc" #Include "commctrl.inc" Function PBMain As Long Local hDlg As Dword Local lvbi As LVBKIMAGE Local szFile As Asciiz*%MAX_PATH InitCommonControls Dialog New 0,"Test JPG",,,550,380,%WS_OVERLAPPEDWINDOW To hDlg Control Add "syslistview32",hDlg,1000,"",10,10,530,360, %WS_CHILD Or %WS_VISIBLE szFile = "D:\WINNT\Web\Wallpaper\Chateau.jpg" lvbi.ulFlags = %LVBKIF_STYLE_NORMAL Or %LVBKIF_SOURCE_URL lvbi.pszImage = VarPtr(szFile) lvbi.cchImageMax = Len(szFile) Control Send hDlg, 1000, %LVM_SETBKIMAGE, 0, VarPtr(lvbi) Dialog Show Modal hDlg End Function
RValois.
------------------
http://www.rvalois.com.br/downloads/free/
[This message has been edited by Roberto Valois (edited June 18, 2004).]
Comment