Adds or removes system registry
/////////////////////////////////////////////////////////////////////////////
// CMyCtrlCtrl::CMyCtrlCtrlFactory::UpdateRegistry -
// Adds or removes system registry entries for CMyCtrlCtrl
BOOL CMyCtrlCtrl::CMyCtrlCtrlFactory::UpdateRegistry(BOOL bRegister)
{
// TODO: Verify that your control follows apartment-model threading rules.
// Refer to MFC TechNote 64 for more information.
// If your control does not conform to the apartment-model rules, then
// you must modify the code below, changing the 6th parameter from
// afxRegApartmentThreading to 0.
if (bRegister)
return AfxOleRegisterControlClass(
AfxGetInstanceHandle(),
m_clsid,
m_lpszProgID,
IDS_MYCTRL,
IDB_MYCTRL,
afxRegApartmentThreading,
_dwMyCtrlOleMisc,
_tlid,
_wVerMajor,
_wVerMinor);
else
return AfxOleUnregisterClass(m_clsid, m_lpszProgID);
}
/////////////////////////////////////////////////////////////////////////////
// CMyCtrlCtrl::CMyCtrlCtrl - Constructor
CMyCtrlCtrl::CMyCtrlCtrl()
{
InitializeIIDs(&IID_DMyCtrl, &IID_DMyCtrlEvents);
m_bSelected = FALSE;
m_nShape = 0;
SetForeColor(RGB(0,255,0));
m_timeSleep = 1000;
m_tick = 0;
}
/////////////////////////////////////////////////////////////////////////////
// CMyCtrlCtrl::~CMyCtrlCtrl - Destructor
CMyCtrlCtrl::~CMyCtrlCtrl()
{
}
/////////////////////////////////////////////////////////////////////////////
Ñîäåðæàíèå Íàçàä Âïåðåä