• 0

Creating a Spin Wheel


Question

I have googled this to death and I cannot find a way to declare

CSpinButtonCtrl m_MySpinControl;

1) What do I put in this ?

BEGIN_MESSAGE_MAP(CTestAPIDlg, CDialog)

//{{AFX_MSG_MAP(CTestAPIDlg)

ON_WM_PAINT()

ON_WM_QUERYDRAGICON()

2)

I have this, but I don't see to get a call when the spin wheel activates

void CTestAPIDlg::OnDeltaposSpin(NMHDR* pNMHDR, LRESULT* pResult)

{

// std::cout << "GOT HERE" << std::endl;

NM_UPDOWN* pNMUpDown = (NM_UPDOWN*)pNMHDR;

// TODO: Add your control notification handler code here

int Scale = 2;

UpdateData(TRUE);

m_Shares = m_Shares + Scale * pNMUpDown->iDelta;

int Min, Max;

//m_MySpinControl.GetRange(Min, Max);

//m_Shares = m_MySpinControl.V ;//::< Min ? Min : (m_MySpinControl > Max ? Max : m_MySpinControl);

UpdateData(FALSE);

*pResult = 0;

}

Not sure what else I need in order to get this working

Link to comment
https://www.neowin.net/forum/topic/884326-creating-a-spin-wheel/
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.