08-01-2014 07:56 PM - edited 08-01-2014 08:08 PM
Hello,
Using GetBitmapFromFileEx () to get an image file's bitmap ID, then using SetCtrlBitmap() to show it in a picture like control. I'd like to know if just to save the bitmap id but not include the image body to the database, then just use this bitmap ID, if this way can resume the image display?
David
08-02-2014 05:29 PM
Unfortunately not: the bitmap ID is not an absolute value but is just a reference to an object loaded in memory; if you haven't loaded the image, saving the ID has no value. Additionally, like any other dynamically allocated object, there is no guarantee that the same picture loaded in different moments in the life of the program will have the same ID.