I have created a few CSpinButtonCtrl in the dialog boxes.

Using the UDN_DELTAPOS message, I will be able to determine whether the user has pressed on the up or down arrow of the control. The iDelta in the NMUPDOWN struct will return +1 when the user clicks on the up arrow while it will return -1 when the user clicks on the down arrow of the spin control.

This works out out fine for the CSpinButtonCtrl that i have created except for 1 which is created for the mainframe. This spin control will return iDelta = -1 when the user clicks on the up button while it will return iDelta = +1 when the user clicks on the down button.

Does anybody knows whats the problem?