Share via


Windows XP Media Center Edition SDK Using the Callback Function 

banner art
Previous Next

Using the Callback Function

This section describes the OnLoad function, which enables the Party Mode skin and the Party Mode program to communicate by defining where important Party Mode controls are drawn.

If a user attempts to use the Party Mode skin in Windows Media Player, the ShowNotPartyModeMsg function is called. This function displays an error message that should state that the skin is designed for Party Mode and cannot be used with Windows Media Player.

If the button definition that draws the cascading visualization selection menu is used, the function LoopThroughEffects must be called in OnLoad and implemented in your skin.

Note   Media Center objects are not available until a page is fully loaded. The page loading need not be entirely successful, but it must be complete before the objects can be accessed.

OnLoad

  

LoopThroughEffects

  

See Also

Previous Next

© 2005 Microsoft Corporation. All rights reserved.