Einzelnen Beitrag anzeigen

WojTec

Registriert seit: 17. Mai 2007
480 Beiträge
 
Delphi XE6 Professional
 
#1

How to save cursor from resource?

  Alt 19. Sep 2014, 14:29
Delphi-Version: XE5
I have tree with resources from executable. I'm getting it as below:

ICO.Handle := CreateIconFromResourceEx(Memory, Size, &Type = Longint(RT_ICON), $30000, 0, 0, 0);

If I want to display it (eg. assign TIcon to TBitmap), this working for both icons and cursors, but if I want to save it, this working only for icons and for cursors raises exception class EInvalidGraphic with message 'Bitmap image is not valid'.

F1, please
  Mit Zitat antworten Zitat