共用方式為


Implementing CPluginWindow

[The feature associated with this page, Windows Media Player SDK, is a legacy feature. It has been superseded by MediaPlayer. MediaPlayer has been optimized for Windows 10 and Windows 11. Microsoft strongly recommends that new code use MediaPlayer instead of Windows Media Player SDK, when possible. Microsoft suggests that existing code that uses the legacy APIs be rewritten to use the new APIs if possible.]

The CPluginWindow class provides the UI to the plug-in. In the case of the Search UI plug-in, this class contains the code for the Search button and the code that launches the search page when the button is clicked.

The wizard provides a basic implementation of CPluginWindow in the CPluginWindow.h header file. To keep things simple, the Search UI plug-in will modify this file directly, although extensive additions would normally be placed in a separate CPluginWindow.cpp file.

The following sections describe what you need to do to implement CPluginWindow:

User Interface Plug-ins Programming Guide