BCGControlBar Pro for MFC
virtual BOOL CBCGPGanttChart::IsWorkingTime ( const CBCGPGanttItem pItem,
COleDateTime  day 
) const
virtual

Indicates whether the specified time falls within working interval.

Returns
TRUE if the specified time is located within working interval; otherwise FALSE.

The default implementation does not check the pItem. It just checks whether the day is Saturday or Sunday. Override this method in a derived class to add check for other holidays. You can also return FALSE if the specified item (partially) belongs to a person that is on vacation.

Parameters
pItemA pointer to an item.
dayDateTime to check.