procedure TForm1.mi_CopyFileAdvancedDrawItem(Sender: TObject;
ACanvas: TCanvas; ARect: TRect; State: TOwnerDrawState);
var
bmp: TBitmap;
begin
ACanvas.FillRect(ARect) ;
//zeichne text/draw text
ACanvas.TextRect(ARect, 40 + ARect.Left, 10 + ARect.Top, mi_CopyFile.Caption) ;
//zeichne Bitmap aus ImageList/draw bitmap from imagelist
bmp := TBitmap.Create;
try
menuImages.GetBitmap(mi_CopyFile.ImageIndex, bmp) ;
ACanvas.Draw(ARect.Top, ARect.Left, bmp) ;
finally
bmp.Free;
end;
end;