Share via


Customizing Action Key Behavior for Calendar Hyperlinks

4/8/2010

A developer can customize what happens in response to a user selecting a hyperlink in the calendar application. The developer must provide event handlers to implement the desired behavior.

The hyperlink can be an e-mail address or a phone number.

Implementing the Event Handler

The developer must provide event handlers to implement the desired behavior.**

The interface must be placed into a COM object, and the CLSID of the COM object must be placed into the registry. **

When a user selects a hyperlink with the Action key or by tapping the link, the VK_ACTION event is generated. When the calendar application receives this event, and there are registered event handlers, the application invokes the appropriate handler, either OnEmail or OnPhoneNumber. The application places information about the calendar item and the hyperlink into the parameters that it passes to the handler.

The handler does not have to handle all hyperlinks. If it is invoked for a hyperlink that it does not handle, it should return a status of E_FAIL. When the calendar application sees this status, it will provide default behavior.

See Also

Reference

ICalContactLinkHandler
Pocket Outlook Object Model Registry Settings

Other Resources

Customizing the PIM User Experience