To build and run this sample
1. Open the solution file atlbutn.sln.
2. From the Build menu, click Build Solution.
3. Open the ActiveX Control Test Container and insert the control (CAtlButton Object). For details on accessing Test Container and using it to test a control, see Testing Properties and Events with Test Container.
4. Open the Properties dialog box for the control, then associate an image with each of the listed properties, by browsing to the sample folder, selecting a BMP file, and clicking Apply.
5. Note how the image displayed in the control changes if the pointer hovers over it, or if the control is clicked.