Compartilhar via


OlReminderOptions

Windows Mobile SupportedWindows Embedded CE Supported

9/8/2008

The OlReminderOptions enumeração identifica o tipo de lembrete usado para itens de compromisso e tarefas.

Syntax

enum OlReminderOptions {
  olLED     = 1,
  olVibrate = 2,
  olDialog  = 4,
  olSound   = 8,
  olRepeat  = 16
};

Elements

  • olLED
    Light Emitting Diode (LED) do o dispositivo móvel mostra a visivelmente anunciar o lembrete.
  • olVibrate
    Interno do dispositivo móvel o vibrator vibra para anunciar o lembrete.
  • olDialog
    Uma caixa diálogo aparece na Tela para visivelmente anunciar o lembrete.
  • olSound
    O dispositivo móvel desempenha um arquivo onda para audibly anunciar o lembrete.
  • olRepeat
    O lembrete é repetido até que o usuário confirma-lo.

Remarks

Os valores nessa enumeração são em uma seqüência que dobra entre valores. Isso permite que você especificar combinações de múltiplo valores combinando individual valores com o bit a bit Ou. De exemplo, o valor 6 é interpretada para significar tanto 2 e 4 juntos.

Example

O seguinte exemplo de código demonstra como definir um lembrete de compromisso Vibrar e repita até confirmados, o usuário. A variável pAppt é um ponteiro para um item do tipo IAppointment.

IAppointment * pAppt;
SYSTEMTIME     st;
DATE           date;

// Create an Appointment item from the POOM application object.
polApp->CreateItem(olAppointmentItem, (IDispatch**)&pAppt);

// Convert the date Monday, 5/10/2007 at 8:30 PM to a DATE object.
memset(&st, 0, sizeof(SYSTEMTIME));

st.wMonth = 5;
st.wDay   = 10;
st.wYear  = 2007;
st.wHour  = 20.5;

polApp->SystemTimeToVariantTime(&st, &date);

// Set the appointment's subject, start date, and reminder.
hr = pAppt->put_Subject(TEXT ("Test Appointment"));
hr = pAppt->put_Start(date);
hr = pAppt->put_ReminderOptions(olVibrate | olRepeat);

// Save the Appointment item.
hr = pAppt->Save();

Para tornar o exemplo de código mais fácil para ler, verificação de segurança e manipulação de erro não estão incluídos. This code example should not be used in a release configuration unless it has been modified to include them.

Requirements

Header pimstore.h
Library Pimstore.lib
Windows Embedded CE Windows CE 3.0 and later
Windows Mobile Pocket PC 2000 and later, Smartphone 2002 and later

See Also

Tasks

Creating a PIM Item

Reference

Pocket Outlook Object Model Interfaces
Calendar and Task Property ID's
IAppointment::put_ReminderOptions
ITask::put_ReminderOptions

Other Resources

Pocket Outlook Object Model Enumerations