共用方式為


Source Provider Customization Type Flags

4/8/2010

These flags describe the types of customizations that a particular Source Provider supports.

Option Value Description

PIMSRC_CUSTOM_CONTACTS_SUMMARY_CARD

0x00000001

Enables a Source Provider to provide a customized Summary tab for associated Contact items when users open them from the Contact list view.

PIMSRC_CUSTOM_CONTACTS_PAINT_LIST_ICON

0x00000004

Enables a Source Provider to draw its own icon for associated Contact items when they appear in the Contact list view.

PIMSRC_CUSTOM_CONTACTS_NEW

0x00000008

Enables a Source Provider to display a custom user interface when users create new Contacts, and to save the new Contact item.

PIMSRC_CUSTOM_APPOINTMENTS_COLORS

0x00000800

Allows a Source Provider to display Appointment items with alternate background colors in the Agenda and Day views.

PIMSRC_CUSTOM_VALIDMASK

0x00000805

(PIMSRC_CUSTOM_CONTACTS_SUMMARY_CARD | PIMSRC_CUSTOM_CONTACTS_PAINT_LIST_ICON | PIMSRC_CUSTOM_CONTACTS_NEW | PIMSRC_CUSTOM_APPOINTMENTS_COLORS)

Remarks

These flags are used to create the value for the Customizations Registry Key.

Multiple flags can be combined to create a bitmask.

Example

For example, if you want to implement a custom summary card and a custom contact icon, but you do not want to display Appointments with alternate background colors, you might use the following Customizations registry key:

HKLM
    \System
           \PIMSources
                      \001
                          \Colors
                          \CLSID
                          \(PIMSRC_CUSTOM_CONTACTS_SUMMARY_CARD | PIMSRC_CUSTOM_CONTACTS_PAINT_LIST_ICON)

Requirements

Header pimstore.h
Library Pimstore.lib
Windows Mobile Pocket PC for Windows Mobile Version 5.0 and later, Smartphone for Windows Mobile Version 5.0 and later

See Also

Reference

Pocket Outlook Object Model Flags
IPimSrcContactListIcon::Paint
IPimSrcContactSummaryCard::Display
IPimSrcContactNew::Create
PIMSRC_COLOR
Source Provider PIM Type Ownership Flags