Thread View: borland.public.delphi.nativeapi
1 messages
1 total messages
Started by benthon
Tue, 03 Aug 2004 18:15
SETBKIMAGE don't work
Author: benthon
Date: Tue, 03 Aug 2004 18:15
Date: Tue, 03 Aug 2004 18:15
20 lines
1348 bytes
1348 bytes
I am unable to put a background image on a Listview in Delphi 7
Here is a piece of my program, but it does not work
procedure TForm1.LVBGImage;
var
BKimg : TLVBKIMAGE;
begin
FillChar(BKimg, SizeOf(BKimg), 0);
BKimg.ulFlags := LVBKIF_SOURCE_URL or LVBKIF_STYLE_TILE;
BKimg.pszImage := PChar('c:\\ben.bmp');
BKimg.xOffsetPercent := 0;
BKimg.yOffsetPercent := 0;
CoInitialize(nil);
SendMessage(ListView1.Handle, LVM_SETTEXTBKCOLOR, 0, integer(CLR_NONE));
SendMessage(ListView1.Handle, LVM_SETBKIMAGE, 0, integer(@BKimg));
CoUninitialize;
end;
Thanks for help
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads