自己手工加吧形式如下BEGIN_MESSAGE_MAP(CRecordPlayActiveCtrl, COleControl) //{{AFX_MSG_MAP(CRecordPlayActiveCtrl) // NOTE - ClassWizard will add and remove message map entries // DO NOT EDIT what you see in these blocks of generated code ! ON_MESSAGE(MM_MCINOTIFY,OnXXX) //}}AFX_MSG_MAP ON_OLEVERB(AFX_IDS_VERB_PROPERTIES, OnProperties) END_MESSAGE_MAP()LRESULT OnXXX(WPARAM, LPARAM) {}
FinalConstruct
FinalRelease不好意思,麻烦帮我讲述清楚点,因为我极少用VC,这次独立写OCX实在是为难
FinalRelease是ATL中的
有哪些函数必在析构函数之前执行的?
OnCreate OnDestroy
//{{AFX_MSG_MAP(CRecordPlayActiveCtrl)
// NOTE - ClassWizard will add and remove message map entries
// DO NOT EDIT what you see in these blocks of generated code !
ON_MESSAGE(MM_MCINOTIFY,OnXXX)
//}}AFX_MSG_MAP
ON_OLEVERB(AFX_IDS_VERB_PROPERTIES, OnProperties)
END_MESSAGE_MAP()LRESULT OnXXX(WPARAM, LPARAM)
{}