ich habe in einem Programm für WinCE einen VirtualDrawTree, der Bitmaps einblenden soll. Der Code ist identisch zu einem Delphi-Programm (soll auch so sein!) und lädt so die Bitmaps:
Code: Alles auswählen
// Bitmap davor setzen
tmpBmp := TBitmap.Create;
if myData^.AnzahlBestellt = 0 then
tmpName := 'SPINCTRL_0'
else if myData^.AnzahlBestellt = 0.5 then
tmpName := 'SPINCTRL_05'
else if myData^.AnzahlBestellt = 1.0 then
tmpName := 'SPINCTRL_1'
else if myData^.AnzahlBestellt = 2.0 then
tmpName := 'SPINCTRL_2'
else
tmpName := 'SPINCTRL_3';
tmpBmp.LoadFromResourceName(HInstance, TmpName);
CU, der Poelser