写了一个继承自CcomboBox的类,确实不能动态的创建,郁闷死了,知道的大大们帮帮忙!该如何解决

写了一个继承自CcomboBox的类,确实不能动态的创建,郁闷死了,知道的大大们帮帮忙!
class CStyleComboxEx : public CComboBox{
// Construction
public:
CStyleComboxEx();
// Attributes
public:
void DrawLineStyle(CDC *pDC,CPoint left, CPoint right, int type);
CArray<int, int> m_linestyles;
CArray<COLORREF, COLORREF> colors;
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CColorComboEx)
public:
virtual void DrawItem(LPDRAWITEMSTRUCT lpDrawItemStruct);
protected:
virtual void PreSubclassWindow();
//}}AFX_VIRTUAL
// Implementation
public:

virtual ~CStyleComboxEx();

// Generated message map functions
protected:
//{{AFX_MSG(CStyleComboxEx)
afx_msg void OnDrawItem(int nIDCtl, LPDRAWITEMSTRUCT lpDrawItemStruct);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
public:
virtual BOOL Create(DWORD dwStyle, const RECT& rect, CWnd* pParentWnd, UINT nID);

public:
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
};


------解决方案--------------------
找个例子看看。codeproject
------解决方案--------------------
指哪个动态创建?
没加动态创建那两个宏?
DECLARE_DYNCREATE
IMPLEMENT_DYNCREATE
------解决方案--------------------
是怎么个不行法?
要是想自己画些东西别忘了设置owner draw的属性。