Application Event Issue

Hi, everyone

Now I meet a problem about sending application event in SideShow.

Assume we navigate in the Windows Media Player gadget and in the content id of 00007 (Now playing), and when we click the select button, it will navigate to a menu id of 100, then we can choose to click Play Pause or Stop, my question is in this case do we send a SCF_EVENT_MENUACTION structure? if so, how can I determine that the button paremeter is SCF_BUTTON_PLAY or SCF_BUTTON_PAUSE or simply SCF_BUTTON_SELECT, is that according to the item id?

So, is that need to send application event whenever user clicks a button? And what's the difference about SCF_CONTEXTMENU_EVENT and SCF_MENUACTION_EVENT?

I'll very appreciate for your answer.

Ender

[774 byte] By [enderqs] at [2008-3-3]
# 1

Ender,

An application event should be sent every time there is a change in the current page the user is viewing due to interaction via a button. Not all button presses will generate events. The details for when various application events should be sent are described in this topic: http://msdn2.microsoft.com/en-us/library/aa939024.aspx

BTW, the SCF_BUTTON_PLAY, SCF_BUTTON_PAUSE and some others are not typically used unless your device has some additional buttons. They were put in there for extensibility purposes, but are not really used right now. If the user hits the SELECT button, then the event should contain the SCF_BUTTON_SELECT as the ButtonId value.

Hope that helps. Let us know if you have any more questions.

Thanks,

Dan

DanPolivy-MSFT at 2007-9-26 > top of Msdn Tech,Software Development for Windows Vista,Windows SideShow Development...

Software Development for Windows Vista

Site Classified