I have several sliders which I am using to simulate audio circuit controls. These were created with a resource editor as controls in a dialog.
The message received by the dialog procedure is WM_VSCROLL.
HIWORD(wParam) contains the slider position.
LOWORD(wParam) contains the notification code TB_THUMBTRACK, when the slider is moved, and TB_THUMBPOSITION when the slider is released.
This works fine if there is only one slider.
Normally I use the ID of a control (an int) in a switch statememnt to handle messages from them. Other controls simply send the control ID with the WM_COMMAND message. But in order to see which of several sliders has been moved, I only have the handle of the control, which is contained in lParam. I believe the control ID is really what I want, but I don't see any way to get it. Or is there some other way this is normally handled?
-