Handling Pictures in ATL projects

If you are not using MFC, you can't use the MFC CPictureHolder class. But you can use the CPicHolder class provided in the samples on the distribution CD. CPicHolder is actually more powerful than CPictureHolder because it provides methods for loading pictures from disk files and from the clipboard. Once you include the CPicHolder class in your project, you can handle pictures just as we discussed earlier, when dealing with MFC projects.

The samples on the distribution CD include other useful classes, such as CToolTip, and a file named AtlControls.h that is part of a Visual Studio sample and defines ATL wrapper classes for all Windows common controls.