Share via


Windows Media Player 11 SDK The Message MapĀ 

Windows Media Player SDK banner art

Previous Next

The Message Map

The plug-in window responds to various events by calling methods that are mapped to corresponding event messages. The wizard provides a mapping so that OnPaint and OnEraseBackground will be called at the appropriate times. In order to create the Search button and to respond to clicks from it, the message map section is modified as follows:

BEGIN_MSG_MAP(CPluginWindow)
    MESSAGE_HANDLER(WM_PAINT, OnPaint)
    MESSAGE_HANDLER(WM_ERASEBKGND, OnEraseBackground)
    MESSAGE_HANDLER(WM_CREATE, OnCreate)
    COMMAND_ID_HANDLER(IDC_SEARCH, OnSearch)
END_MSG_MAP()

See Also

Previous Next