402 lines
14 KiB
C++
402 lines
14 KiB
C++
#if !defined(AFX_CTSCHEDULE_H__C5A2FB01_B94D_11D4_964F_00C0F02C4B69__INCLUDED_)
|
|
#define AFX_CTSCHEDULE_H__C5A2FB01_B94D_11D4_964F_00C0F02C4B69__INCLUDED_
|
|
|
|
#if _MSC_VER > 1000
|
|
#pragma once
|
|
#endif // _MSC_VER > 1000
|
|
// Machine generated IDispatch wrapper class(es) created by Microsoft Visual C++
|
|
|
|
// NOTE: Do not modify the contents of this file. If this class is regenerated by
|
|
// Microsoft Visual C++, your modifications will be overwritten.
|
|
|
|
|
|
// Dispatch interfaces referenced by this interface
|
|
class COleFont;
|
|
class CPicture;
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
// CctSchedule wrapper class
|
|
|
|
class CctSchedule : public CWnd
|
|
{
|
|
protected:
|
|
DECLARE_DYNCREATE(CctSchedule)
|
|
public:
|
|
CLSID const& GetClsid()
|
|
{
|
|
static CLSID const clsid
|
|
= { 0x98b65d65, 0x50b4, 0x11d3, { 0x94, 0x41, 0x54, 0xac, 0xe, 0xc1, 0x0, 0x0 } };
|
|
return clsid;
|
|
}
|
|
virtual BOOL Create(LPCTSTR lpszClassName,
|
|
LPCTSTR lpszWindowName, DWORD dwStyle,
|
|
const RECT& rect,
|
|
CWnd* pParentWnd, UINT nID,
|
|
CCreateContext* pContext = NULL)
|
|
{ return CreateControl(GetClsid(), lpszWindowName, dwStyle, rect, pParentWnd, nID); }
|
|
|
|
BOOL Create(LPCTSTR lpszWindowName, DWORD dwStyle,
|
|
const RECT& rect, CWnd* pParentWnd, UINT nID,
|
|
CFile* pPersist = NULL, BOOL bStorage = FALSE,
|
|
BSTR bstrLicKey = NULL)
|
|
{ return CreateControl(GetClsid(), lpszWindowName, dwStyle, rect, pParentWnd, nID,
|
|
pPersist, bStorage, bstrLicKey); }
|
|
|
|
// Attributes
|
|
public:
|
|
BOOL GetEnabled();
|
|
void SetEnabled(BOOL);
|
|
OLE_COLOR GetBackColor();
|
|
void SetBackColor(OLE_COLOR);
|
|
OLE_HANDLE GetHWnd();
|
|
void SetHWnd(OLE_HANDLE);
|
|
unsigned long GetListBarColor();
|
|
void SetListBarColor(unsigned long);
|
|
short GetListBarWidth();
|
|
void SetListBarWidth(short);
|
|
BOOL GetLockListBar();
|
|
void SetLockListBar(BOOL);
|
|
short GetListWidth();
|
|
void SetListWidth(short);
|
|
unsigned long GetBorderColor();
|
|
void SetBorderColor(unsigned long);
|
|
long GetBorderType();
|
|
void SetBorderType(long);
|
|
short GetListColumns();
|
|
void SetListColumns(short);
|
|
short GetTitleHeight();
|
|
void SetTitleHeight(short);
|
|
unsigned long GetTitleBackColor();
|
|
void SetTitleBackColor(unsigned long);
|
|
unsigned long GetTitleForeColor();
|
|
void SetTitleForeColor(unsigned long);
|
|
COleFont GetTitleFont();
|
|
void SetTitleFont(LPDISPATCH);
|
|
long GetTitleBorder();
|
|
void SetTitleBorder(long);
|
|
CString GetTitleText();
|
|
void SetTitleText(LPCTSTR);
|
|
unsigned long GetRulerBackColor();
|
|
void SetRulerBackColor(unsigned long);
|
|
long GetTitleAlign();
|
|
void SetTitleAlign(long);
|
|
long GetRulerBorder();
|
|
void SetRulerBorder(long);
|
|
COleFont GetListFont();
|
|
void SetListFont(LPDISPATCH);
|
|
short GetHeightOffset();
|
|
void SetHeightOffset(short);
|
|
unsigned long GetListBackColor();
|
|
void SetListBackColor(unsigned long);
|
|
unsigned long GetListForeColor();
|
|
void SetListForeColor(unsigned long);
|
|
long GetListBorder();
|
|
void SetListBorder(long);
|
|
short GetSelected();
|
|
void SetSelected(short);
|
|
unsigned long GetSelectBackColor();
|
|
void SetSelectBackColor(unsigned long);
|
|
unsigned long GetSelectForeColor();
|
|
void SetSelectForeColor(unsigned long);
|
|
COleFont GetSelectFont();
|
|
void SetSelectFont(LPDISPATCH);
|
|
short GetTitleXOffset();
|
|
void SetTitleXOffset(short);
|
|
short GetTitleYOffset();
|
|
void SetTitleYOffset(short);
|
|
long GetTimeType();
|
|
void SetTimeType(long);
|
|
BOOL GetRulerSplit();
|
|
void SetRulerSplit(BOOL);
|
|
unsigned long GetRulerForeColor();
|
|
void SetRulerForeColor(unsigned long);
|
|
short GetTimeDistance();
|
|
void SetTimeDistance(short);
|
|
long GetTimeStart();
|
|
void SetTimeStart(long);
|
|
long GetTimeEnd();
|
|
void SetTimeEnd(long);
|
|
long GetDateStart();
|
|
void SetDateStart(long);
|
|
long GetDateEnd();
|
|
void SetDateEnd(long);
|
|
long GetRulerAlign();
|
|
void SetRulerAlign(long);
|
|
short GetRulerXOffset();
|
|
void SetRulerXOffset(short);
|
|
short GetRulerYOffset();
|
|
void SetRulerYOffset(short);
|
|
BOOL GetRulerThreeD();
|
|
void SetRulerThreeD(BOOL);
|
|
COleFont GetRulerFont();
|
|
void SetRulerFont(LPDISPATCH);
|
|
BOOL GetMilitaryTime();
|
|
void SetMilitaryTime(BOOL);
|
|
short GetLineMaxSize();
|
|
void SetLineMaxSize(short);
|
|
short GetLineMinSize();
|
|
void SetLineMinSize(short);
|
|
CString GetDayNames();
|
|
void SetDayNames(LPCTSTR);
|
|
CString GetMonthNames();
|
|
void SetMonthNames(LPCTSTR);
|
|
CString GetDateFormat();
|
|
void SetDateFormat(LPCTSTR);
|
|
BOOL GetIncludeAmPm();
|
|
void SetIncludeAmPm(BOOL);
|
|
BOOL GetDisplayOnly();
|
|
void SetDisplayOnly(BOOL);
|
|
CString GetTimeTagAM();
|
|
void SetTimeTagAM(LPCTSTR);
|
|
CString GetTimeTagPM();
|
|
void SetTimeTagPM(LPCTSTR);
|
|
BOOL GetIncludeMinutes();
|
|
void SetIncludeMinutes(BOOL);
|
|
short GetRulerDivisions();
|
|
void SetRulerDivisions(short);
|
|
short GetBarTipSize();
|
|
void SetBarTipSize(short);
|
|
BOOL GetTimeLines();
|
|
void SetTimeLines(BOOL);
|
|
unsigned long GetTimeLineColor();
|
|
void SetTimeLineColor(unsigned long);
|
|
short GetGridFrequency();
|
|
void SetGridFrequency(short);
|
|
BOOL GetMarkerBars();
|
|
void SetMarkerBars(BOOL);
|
|
unsigned long GetMarkerBarColor();
|
|
void SetMarkerBarColor(unsigned long);
|
|
CPicture GetImage1();
|
|
void SetImage1(LPDISPATCH);
|
|
CPicture GetImage2();
|
|
void SetImage2(LPDISPATCH);
|
|
CPicture GetImage3();
|
|
void SetImage3(LPDISPATCH);
|
|
CPicture GetImage4();
|
|
void SetImage4(LPDISPATCH);
|
|
CPicture GetImage5();
|
|
void SetImage5(LPDISPATCH);
|
|
CPicture GetImage6();
|
|
void SetImage6(LPDISPATCH);
|
|
short GetDefaultStyle();
|
|
void SetDefaultStyle(short);
|
|
short GetBarTipExtension();
|
|
void SetBarTipExtension(short);
|
|
unsigned long GetBarDefBackColor();
|
|
void SetBarDefBackColor(unsigned long);
|
|
unsigned long GetBarDefForeColor();
|
|
void SetBarDefForeColor(unsigned long);
|
|
COleFont GetBarFont();
|
|
void SetBarFont(LPDISPATCH);
|
|
BOOL GetSnapToGrid();
|
|
void SetSnapToGrid(BOOL);
|
|
short GetBar();
|
|
void SetBar(short);
|
|
short GetListCount();
|
|
void SetListCount(short);
|
|
short GetStyleCount();
|
|
void SetStyleCount(short);
|
|
long GetBarSelectBorder();
|
|
void SetBarSelectBorder(long);
|
|
unsigned long GetBarSelectColor();
|
|
void SetBarSelectColor(unsigned long);
|
|
CString GetPrintTitle();
|
|
void SetPrintTitle(LPCTSTR);
|
|
CString GetPrintSubTitle();
|
|
void SetPrintSubTitle(LPCTSTR);
|
|
BOOL GetPrintIndex();
|
|
void SetPrintIndex(BOOL);
|
|
short GetPrintTimeDistance();
|
|
void SetPrintTimeDistance(short);
|
|
short GetPrintColumns();
|
|
void SetPrintColumns(short);
|
|
short GetSchedScroll();
|
|
void SetSchedScroll(short);
|
|
short GetDateOffset();
|
|
void SetDateOffset(short);
|
|
short GetUndoType();
|
|
void SetUndoType(short);
|
|
unsigned long GetWeekendColor();
|
|
void SetWeekendColor(unsigned long);
|
|
BOOL GetVertReposition();
|
|
void SetVertReposition(BOOL);
|
|
BOOL GetAdjustOnMove();
|
|
void SetAdjustOnMove(BOOL);
|
|
short GetListIndex();
|
|
void SetListIndex(short);
|
|
short GetCBarCount();
|
|
void SetCBarCount(short);
|
|
COleFont GetListHeaderFont();
|
|
void SetListHeaderFont(LPDISPATCH);
|
|
unsigned long GetListHeaderColor();
|
|
void SetListHeaderColor(unsigned long);
|
|
short GetListIndent();
|
|
void SetListIndent(short);
|
|
BOOL GetRulerDays();
|
|
void SetRulerDays(BOOL);
|
|
short GetRulerDaySize();
|
|
void SetRulerDaySize(short);
|
|
short GetWeekends();
|
|
void SetWeekends(short);
|
|
BOOL GetTextIntoView();
|
|
void SetTextIntoView(BOOL);
|
|
BOOL GetDatesInBars();
|
|
void SetDatesInBars(BOOL);
|
|
BOOL GetUseImageList();
|
|
void SetUseImageList(BOOL);
|
|
short GetImageListCount();
|
|
void SetImageListCount(short);
|
|
short GetPageXOffset();
|
|
void SetPageXOffset(short);
|
|
short GetPageYOffset();
|
|
void SetPageYOffset(short);
|
|
unsigned long GetBarDateTextColor();
|
|
void SetBarDateTextColor(unsigned long);
|
|
BOOL GetBarTextWrap();
|
|
void SetBarTextWrap(BOOL);
|
|
short GetVirtualAlign();
|
|
void SetVirtualAlign(short);
|
|
unsigned long GetVirtualForeColor();
|
|
void SetVirtualForeColor(unsigned long);
|
|
BOOL GetPrintWeekendColor();
|
|
void SetPrintWeekendColor(BOOL);
|
|
BOOL GetPrintColorBars();
|
|
void SetPrintColorBars(BOOL);
|
|
BOOL GetWeekendDates();
|
|
void SetWeekendDates(BOOL);
|
|
|
|
// Operations
|
|
public:
|
|
void ClearSchedule();
|
|
short AddItem(LPCTSTR strText);
|
|
short AddTimeBar(short nIndex, long lTimeStart, long lTimeEnd, long lDateStart, long lDateEnd);
|
|
BOOL DeleteTimeBar(short nIndex, short nBar);
|
|
void BarStart(short nIndex, short nBar, long lTime, long lDate);
|
|
short AddBarStyle(short nHeight, short nVOffset);
|
|
void ClearBarStyles();
|
|
BOOL SendToBack(short nIndex, short nBar);
|
|
BOOL BringToFront(short nIndex, short nBar);
|
|
void BarEnd(short nIndex, short nBar, long lTime, long lDate);
|
|
short AddKeyTimeBar(short nIndex, long lTimeStart, long lTimeEnd, long lDateStart, long lDateEnd, LPCTSTR cKeyID);
|
|
void CancelSelect();
|
|
void BarMove(short nIndex, short nBar, long lTimeStart, long lTimeEnd, long lDateStart, long lDateEnd);
|
|
BOOL PrintSchedule();
|
|
void AbortPrint();
|
|
BOOL DeleteItem(short nIndex);
|
|
BOOL Undo();
|
|
void CancelDrop();
|
|
short FindFirstItem(short nIndex, short nBar);
|
|
short FindNextItem(short nIndex, short nBar);
|
|
short FindFirstBar(short nIndex, short nBar, short nItem);
|
|
short FindNextBar(short nIndex, short nBar, short nItem);
|
|
void ReDraw(BOOL bScroll);
|
|
short KeyIDItem(LPCTSTR strText);
|
|
short KeyIDBar(LPCTSTR strText, short nIndex);
|
|
BOOL BarIsMilestone(short nIndex, short nBar);
|
|
short AddColorBar(long lTimeStart, long lTimeEnd, long lDateStart, long lDateEnd, unsigned long clrTimeColor);
|
|
void ClearColorBars();
|
|
BOOL DeleteColorBar(short nIndex);
|
|
void TimeScroll(long lDate, long lTime);
|
|
void StopTimer();
|
|
short AddImage(LPDISPATCH picImage);
|
|
BOOL RemoveImage(short nIndex);
|
|
BOOL FirstLine(short nLine);
|
|
short DragOver(short nxPosn, short nyPosn, short nState);
|
|
short DragDrop(short nxPosn, short nyPosn);
|
|
short ctDragOver(short nxPosn, short nyPosn, short nState);
|
|
short ctDragDrop(short nxPosn, short nyPosn);
|
|
short GetColumnWidth(short nIndex);
|
|
void SetColumnWidth(short nIndex, short nNewValue);
|
|
CString GetListText(short nIndex);
|
|
void SetListText(short nIndex, LPCTSTR lpszNewValue);
|
|
long GetBarTimeStart(short nIndex, short nBar);
|
|
void SetBarTimeStart(short nIndex, short nBar, long nNewValue);
|
|
long GetBarTimeEnd(short nIndex, short nBar);
|
|
void SetBarTimeEnd(short nIndex, short nBar, long nNewValue);
|
|
long GetBarDateEnd(short nIndex, short nBar);
|
|
void SetBarDateEnd(short nIndex, short nBar, long nNewValue);
|
|
long GetBarDateStart(short nIndex, short nBar);
|
|
void SetBarDateStart(short nIndex, short nBar, long nNewValue);
|
|
short GetMaxTimeBars(short nIndex);
|
|
void SetMaxTimeBars(short nIndex, short nNewValue);
|
|
short GetBarStyle(short nIndex, short nBar);
|
|
void SetBarStyle(short nIndex, short nBar, short nNewValue);
|
|
unsigned long GetBarBackColor(short nIndex, short nBar);
|
|
void SetBarBackColor(short nIndex, short nBar, unsigned long newValue);
|
|
unsigned long GetBarForeColor(short nIndex, short nBar);
|
|
void SetBarForeColor(short nIndex, short nBar, unsigned long newValue);
|
|
unsigned long GetStyleBackColor(short nIndex);
|
|
void SetStyleBackColor(short nIndex, unsigned long newValue);
|
|
unsigned long GetStyleForeColor(short nIndex);
|
|
void SetStyleForeColor(short nIndex, unsigned long newValue);
|
|
short GetStyleStartImage(short nIndex);
|
|
void SetStyleStartImage(short nIndex, short nNewValue);
|
|
short GetStyleStartYOffset(short nIndex);
|
|
void SetStyleStartYOffset(short nIndex, short nNewValue);
|
|
short GetStyleEndImage(short nIndex);
|
|
void SetStyleEndImage(short nIndex, short nNewValue);
|
|
short GetStyleEndXOffset(short nIndex);
|
|
void SetStyleEndXOffset(short nIndex, short nNewValue);
|
|
short GetStyleEndYOffset(short nIndex);
|
|
void SetStyleEndYOffset(short nIndex, short nNewValue);
|
|
short GetStyleStartXOffset(short nIndex);
|
|
void SetStyleStartXOffset(short nIndex, short nNewValue);
|
|
BOOL GetStyleStartFront(short nIndex);
|
|
void SetStyleStartFront(short nIndex, BOOL bNewValue);
|
|
BOOL GetStyleEndFront(short nIndex);
|
|
void SetStyleEndFront(short nIndex, BOOL bNewValue);
|
|
CString GetBarText(short nIndex, short nBar);
|
|
void SetBarText(short nIndex, short nBar, LPCTSTR lpszNewValue);
|
|
short GetBarTextAlign(short nIndex, short nBar);
|
|
void SetBarTextAlign(short nIndex, short nBar, short nNewValue);
|
|
short GetBarCount(short nIndex);
|
|
CString GetBarKeyID(short nIndex, short nBar);
|
|
void SetBarKeyID(short nIndex, short nBar, LPCTSTR lpszNewValue);
|
|
CString GetListCargo(short nIndex);
|
|
void SetListCargo(short nIndex, LPCTSTR lpszNewValue);
|
|
short GetStyleTextXOffset(short nIndex);
|
|
void SetStyleTextXOffset(short nIndex, short nNewValue);
|
|
short GetStyleTextYOffset(short nIndex);
|
|
void SetStyleTextYOffset(short nIndex, short nNewValue);
|
|
CString GetListColumnText(short nIndex, short nColumn);
|
|
void SetListColumnText(short nIndex, short nColumn, LPCTSTR lpszNewValue);
|
|
short GetStyleVOffset(short nIndex);
|
|
void SetStyleVOffset(short nIndex, short nNewValue);
|
|
short GetStyleBarHeight(short nIndex);
|
|
void SetStyleBarHeight(short nIndex, short nNewValue);
|
|
BOOL GetStyleMilestone(short nIndex);
|
|
void SetStyleMilestone(short nIndex, BOOL bNewValue);
|
|
long GetCBarDateStart(short nIndex);
|
|
void SetCBarDateStart(short nIndex, long nNewValue);
|
|
long GetCBarDateEnd(short nIndex);
|
|
void SetCBarDateEnd(short nIndex, long nNewValue);
|
|
long GetCBarTimeStart(short nIndex);
|
|
void SetCBarTimeStart(short nIndex, long nNewValue);
|
|
long GetCBarTimeEnd(short nIndex);
|
|
void SetCBarTimeEnd(short nIndex, long nNewValue);
|
|
unsigned long GetCBarTimeColor(short nIndex);
|
|
void SetCBarTimeColor(short nIndex, unsigned long newValue);
|
|
BOOL GetListHeader(short nIndex);
|
|
void SetListHeader(short nIndex, BOOL bNewValue);
|
|
BOOL GetListReadOnly(short nIndex);
|
|
void SetListReadOnly(short nIndex, BOOL bNewValue);
|
|
CPicture GetListImage(short nIndex);
|
|
void SetListImage(short nIndex, LPDISPATCH newValue);
|
|
long GetBarData(short nIndex, short nBar);
|
|
void SetBarData(short nIndex, short nBar, long nNewValue);
|
|
CString GetBarCargo(short nIndex, short nBar);
|
|
void SetBarCargo(short nIndex, short nBar, LPCTSTR lpszNewValue);
|
|
long GetListData(short nIndex);
|
|
void SetListData(short nIndex, long nNewValue);
|
|
unsigned long GetListItemBackColor(short nIndex);
|
|
void SetListItemBackColor(short nIndex, unsigned long newValue);
|
|
unsigned long GetListItemForeColor(short nIndex);
|
|
void SetListItemForeColor(short nIndex, unsigned long newValue);
|
|
void AboutBox();
|
|
};
|
|
|
|
//{{AFX_INSERT_LOCATION}}
|
|
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
|
|
|
|
#endif // !defined(AFX_CTSCHEDULE_H__C5A2FB01_B94D_11D4_964F_00C0F02C4B69__INCLUDED_)
|