Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Controls
  New Posts New Posts RSS Feed - CXTPControlGallery, Loading jpeg at runtime
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

CXTPControlGallery, Loading jpeg at runtime

 Post Reply Post Reply
Author
Message
capizzi View Drop Down
Newbie
Newbie
Avatar

Joined: 05 December 2010
Location: Italy
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote capizzi Quote  Post ReplyReply Direct Link To This Post Topic: CXTPControlGallery, Loading jpeg at runtime
    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
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.141 seconds.