Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
You can customize an Appointment item's background color for Calendar Day View and Agenda View by creating the following two registry keys:
[HKLM\System\PimSources\<SourceID>]
"Customizations" = REG_DWORD:PIMSRC_CUSTOM_APPOINTMENTS_COLORS
"Type" = REG_DWORD:PIMSRC_TYPE_APPOINTMENTS
[HKLM\System\PimSources\<SourceID>\Colors]
"1" = REG_DWORD:<RGB value> // A COLORREF structure that describes a 32-bit RGB color.
Remarks
The Colors key value "1" corresponds to the PIMSRC_COLOR enumeration value PIMSRC_COLOR_APPOINTMENTS_BACKGROUND. When you write code to access this registry key value, you can use the PIMSRC_COLOR constant as the name of the key value.
The color value is a COLORREF structure that describes as 32-bit RGB color. When specifying an explicit RGB color, the COLORREF value has the following hexadecimal form.
0x00bbggrr
The low-order byte contains a value for the relative intensity of red, the second byte contains a value for green, and the third byte contains a value for blue. The high-order byte must be zero.
The maximum value for a single byte is 0xFF. To create a COLORREF color value, use the RGB macro.
See Also
Customize the PIM Experience with Source Providers | PIMSRC_COLOR | COLORREF | Source Provider Customization Type Flags | Source Provider PIM Type Ownership Flags | IPimSrcContactListIcon::Paint | IPimSrcContactSummaryCard::Display | Register a Source Provider | Pocket Outlook Object Model API Interfaces | Pocket Outlook Object Model API Enumerations
Send Feedback on this topic to the authors