How to detect the Stop button selection in an ActiveX control in Visual C++ (167956)
The information in this article applies to:
- The Microsoft Foundation Classes (MFC), when used with:
- Microsoft Visual C++, 32-bit Enterprise Edition 4.2
- Microsoft Visual C++, 32-bit Professional Edition 4.2
- Microsoft Visual C++, 32-bit Enterprise Edition 4.2b
- Microsoft Visual C++, 32-bit Professional Edition 4.2b
- Microsoft Visual C++, 32-bit Enterprise Edition 5.0
- Microsoft Visual C++, 32-bit Professional Edition 5.0
- Microsoft Visual C++, 32-bit Enterprise Edition 6.0
- Microsoft Visual C++, 32-bit Professional Edition 6.0
- Microsoft Visual C++, 32-bit Learning Edition 6.0
This article was previously published under Q167956 SUMMARY For some ActiveX controls, such as ActiveMovie, the Stop button in the toolbar of the Internet Explorer has special
meaning to them. Those controls may want to stop playing the background sound
or movie when the Stop button is clicked. This article shows how to add the
IOleCommandTarget interface to an ActiveX control to trap the Stop button selection. REFERENCES
For information about adding the IOleCommandTarget interface to the
ActiveX control, refer to the "Interface Map Basics" section of "TN038: MFC/OLE
IUnknown Implementation" in Visual C++ Books Online.
(c) Microsoft
Corporation 1997, All Rights Reserved. Contributions by Yeong-Kah Tam,
Microsoft Corporation
Modification Type: | Major | Last Reviewed: | 6/2/2005 |
---|
Keywords: | kbinfo kbhowto KB167956 kbAudDeveloper |
---|
|