Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Create a bitmap strip 2

Status
Not open for further replies.

kshea

Technical User
May 31, 2002
60
CA
Hi,

Does anyone know how to create a bitmap strip containing all
of the images I want to display in a tree view?

Thank you in advance.
 
The Visual C++ Resource Editor knows how to do it. Have you ever worked with it?

-pete
I just can't seem to get back my IntelliSense
 
Thanks for your reply. But still can not create a Bitmap strip like this,

----------------------------
| | | |
|Imahe0|Image1|Image2|...
| | | |
----------------------------

Could you point me a right direction? Thanks.
 
If you mean what I think you mean you just create a bitmap
(Resource Editor -> Insert... -> Bitmap

This one bitmap holds all images in the "strip".
Ie if you want 4 16x16 images for the tree you size the bitmap to 64x16 and draw the separate images in it as apropriate.

You then pass the bitmap's ID to the CImageList's Create method when you set up the tree control/view.

 
kshea,

If you have no idea where to start do this: Create a AppWizard SDI application. This generates a bitmap strip for use in the toolbar for the application, so you can go and look at it using the resoruce editor.

In the resource editor under the Toolbar tree node, open the IDR_MAINFRAME item. This will show you how a standard bitmap strip is created in the resource editor.

-pete
I just can't seem to get back my IntelliSense
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top