MFC Spin Control delta is reversed

  • Thread starter Thread starter kenkun
  • Start date Start date
K

kenkun

Guest
Hello,

I am using an MFC spin control with a text box buddy. When I process the delta change in the OnDeltaPosXXXX function the delta is reversed. i.e. when the up button is pressed the delta is minus. According to the documentation it should be positive not negative. Why might it be coming in negative?


void My_Dialog::OnDeltaposSpin2(NMHDR *pNMHDR, LRESULT *pResult)
{
LPNMUPDOWN pNMUpDown = reinterpret_cast<LPNMUPDOWN>(pNMHDR);
if( pNMUpDown->iDelta > 0 )
{

// positive delta stuff???

}
else
{

// negative delta stuff???
}
*pResult = 0;
}


Anyone have any ideas?

Thanks.

Continue reading...
 
Back
Top