I have a spin control for which I need to execute a particular function AFTER the user has released the button (up or down) on the spin control... that is, I do not want to do this function for each iteration of the spin control... ONLY when the spin control has stopped incrementing. The only message handlers I see that are offered by the MFC ClassWizard are NM_OUTOFMEMORY and UDN_DELTAPOS. Neither of these seems to be what I need.

How can I know that the spin control has changed its buddy CEdit control AND that the spin control is not continuing to increment?