Problem jest raczej trudny ale mam nadzieje , że na tym forum ktoś potrafi rozwiązać problem.
Chodzi o zmianę koloru paska zaznaczającego wiersz aktywny.
Poniżej fragment kodu, który powinien to realizować ale niestety nie realizuje :(
function FunOkna(hOkno: HWND; uKomunikat: UINT;
wParametr: WPARAM; lParametr: LPARAM): LRESULT; stdcall;
begin
Result := 0;
case uKomunikat of
WM_NOTIFY:
if PNMLVCustomDraw(Lparametr)^.nmcd.hdr.hwndFrom=HListView then
begin
if PNMLVCustomDraw(LParametr)^.nmcd.dwDrawStage=CDIS_SELECTED then
begin
SetBkMode(PNMLVCustomDraw(Lparametr)^.nmcd.hdc, OPAQUE);
SetTextColor(PNMLVCustomDraw(Lparametr)^.nmcd.hdc, RGB(0,255,0));
SetBkColor(PNMLVCustomDraw(Lparametr)^.nmcd.hdc, rgb(255,0,0));
PNMLVCustomDraw(LParametr)^.clrTextBk:=RGB(0,255,0);
PNMLVCustomDraw(LParametr)^.clrText:=rgb(255,0,0);
Result:= CDRF_DODEFAULT or CDRF_NOTIFYPOSTPAINT;
end;
end;
end;
end;