SUMMARY
The ColorFrm sample demonstrates adding a popup toolbar to
an ActiveX Control. ColorFrm uses a CMiniFrameWnd derived class to contain the
toolbar that is visible whenever the control is UI Active. When the control is
no longer active, the toolbar is hidden and its position is saved.
The ColorFrm sample details which COleControl functions must be overridden to
achieve this behavior. The sample also demonstrates some other basic ActiveX
Control functionality, such as an OnDraw function that renders differently
based on the AmbientUserMode of the control.
The following files are available for
download from the Microsoft Download Center:
Visual C++ 6.0
For
additional information about how to download Microsoft Support files, click the
following article number to view the article in the Microsoft Knowledge Base:
119591 How to Obtain Microsoft Support Files from Online Services
Microsoft scanned this file for viruses. Microsoft used the most
current virus-detection software that was available on the date that the file
was posted. The file is stored on security-enhanced servers that help to
prevent any unauthorized changes to the file.
Visual C++ .NET
Release Date: July 2, 2002
For additional information about how to download Microsoft Support files, click the following article number to view the article in the Microsoft Knowledge Base:
119591 How to Obtain Microsoft Support Files from Online Services
Microsoft scanned this file for viruses. Microsoft used the most current virus-detection software that was available on the date that the file was posted. The file is stored on security-enhanced servers that help to prevent any unauthorized changes to the file.