BOOL CBCGPPlannerManagerCtrl::UpdateAppointment | ( | CBCGPAppointment * | pApp, |
const COleDateTime & | dtOld, | ||
BOOL | bQuery = TRUE , |
||
BOOL | bRedraw = TRUE |
||
) |
Updates an appointment in the storage.
Use this method to update an appointment in the storage. The storage is responsible for finding the existing appointment.
UpdateAppointment does not force addition of the new appointment if the appointment to be updated is not found. See AddAppointment() for how to set bQuery and bRedraw.
pApp | Pointer to the appointment containing the data that should update an existing appointment. |
dtOld | Old date/time value. |
bQuery | If TRUE, the Planner Control will update its state (its internal list of appointments) from the storage; otherwise the internal list of appointments remains unchanged. |
bRedraw | If TRUE, the Planner Control will immediately adjust appointments and redraw itself, should be FALSE if bQuery is FALSE. |