- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
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
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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)

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page