I've been trying to add a control to a view class, but have not had any success as yet.
I delcare a class member of type CSpinButtonCtrl*,
then use the following code in either the view class or mainframe class:
CRect spinrect;
spinrect.SetRect(100,100,200,200);
m_spin=new CSpinButtonCtrl();
m_spin->Create(WS_CHILD|WS_VISIBLE|UDS_ALIGNLEFT,spinrect,this,IDC_SPIN);

Does anyone know why it doesn't work?