Software Archive
Read-only legacy content
17061 Discussions

Using spin/up-down control

davidgraham
Beginner
590 Views
I have a spin/up-down control along side a number of edit boxes.

As I change the spin control I want to update the values in the edit boxes.

How do I determine that the spin has changed.

I thought I did the following, but ire is returning the wrong number.
Any ideas what the problem is?

case (CM_NOTIFY)
ire=Send Message(GetDlgItem(hand,DC_SPIN1),UDM_GETPOS,0,0)

Thanks,

David
0 Kudos
1 Reply
davidgraham
Beginner
590 Views
 
I have worked this out myself, the critical error (apart from the typing mistakes) was using LoWord to get the result

case (WM_VSCROLL)
iret=SendMessage(GetDlgItem(hwnd,IDC_SPIN1),UDM_GETPOS,0,0)
num=LoWord(iret)
0 Kudos
Reply