ActiveX


MyCtrlCtrl.h - 2


afx_msg BOOL GetSelected();

afx_msg OLE_COLOR GetSelectColor();

afx_msg void SetSelectColor(OLE_COLOR nNewValue);

afx_msg OLE_COLOR GetTextColor();

afx_msg void SetTextColor(OLE_COLOR nNewValue);

afx_msg long GetSleep();

afx_msg void SetSleep(long nNewValue);

afx_msg BOOL DoChangeTimer();

//}}AFX_DISPATCH

DECLARE_DISPATCH_MAP()

afx_msg void AboutBox();

// Event maps

//{{AFX_EVENT(CMyCtrlCtrl)

void FireSelect(BOOL IsSelected)

{FireEvent(eventidSelect,EVENT_PARAM(VTS_BOOL), IsSelected);}

void FireTick(long ltick)

{FireEvent(eventidTick,EVENT_PARAM(VTS_I4), ltick);}

//}}AFX_EVENT

DECLARE_EVENT_MAP()

// Dispatch and event IDs

public:

enum {

//{{AFX_DISP_ID(CMyCtrlCtrl)

dispidShape = 1L,

dispidSelected = 2L,

dispidSelectColor = 3L,

dispidTextColor = 4L,

dispidSleep = 5L,

dispidDoChangeTimer = 6L,

eventidSelect = 1L,

eventidTick = 2L,

//}}AFX_DISP_ID

};

};

//{{AFX_INSERT_LOCATION}}

// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_MYCTRLCTL_H__49E2F38D_B48D_11D3_A2B0_00A0C955FA9E__INCLUDED)




- -  - -  - -