Viewing slider value WINDOWS?

I have my dialog set upand I am trying to view a slider controls value. This is not to do with .NET framework it is the old controls. Does anyone know how to do this thanks
SOLVED!

In case anyone else is wondering how to do this its simple enough you use the SendMessage function in the windows api and set the message as TBM_GETPOS with wParam and lParam set to zero. The program will then return the position.

Here is an example of it while trying to send a message to a dialog

 
unsigned int speed = SendDlgItemMessage(mainDialog, SPEED_SLIDER, TBM_GETPOS, 0, 0);


Its pretty much the same thing with SendMessage except you don't pass the first parameter "mainDialog".

And SPEED_SLIDER is a definition of the ID of the control well technically its called a window.
Last edited on
Topic archived. No new replies allowed.