CXTPControlGallery, Loading jpeg at runtime |
Post Reply |
Author | |
capizzi
Newbie Joined: 05 December 2010 Location: Italy Status: Offline Points: 2 |
Post Options
Thanks(0)
Posted: 20 July 2016 at 11:33am |
Hi, I am trying to make an image gallery like Picasa thumbnails in editing mode view.
Like this one I have placed a CXTPControlGallery on CommandBars trying to feed it with thumbnails loaded dynamically by sql. I had no luck to make it works, I can correctly add items with caption and labels but when i try to set icon into imagemenager all i can display is a blank item. The flow is as following : I take raw jpeg from a db table, i load them into memory and convert Dib to Bitmap handler (HBITMAP) then i attach the handler to a CXTPImageManagerIconHandle stored in a vector member of mainframe class. Images are loaded correctly and i can get them at any time until the mainframe doesn't get destroyed. So i wanna know which is the right way load a bitmap (from memory) into imagemanager and make ControGallery to properly display it? |
|
Capizzi Filippo
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |