I'm controlling a 3rd party program through some software that I wrote.
I am able to click buttons and move various controls but when it comes to the scroll bars I've hit a brick wall.
Just to help you visualize here's a pic of the program I'm talking about.
I am using setrange and setpos to control where I want the slider to go. And this works well... to a point. The static text next to the slider is supposed to change as you slide it but it doesn't do anything. You have to click the new position with your mouse for it to register any change.Code:
apptr1->SendDlgItemMessage(0x42B, TBM_SETRANGE, (WPARAM) TRUE, (LPARAM) MAKELONG(100, 8000));
apptr1->SendDlgItemMessage(0x42B, TBM_SETPOS, (WPARAM) TRUE, (LPARAM)/*SetPos Here*/100);
My program is controlled by a remote device and I cannot have any interaction with the mouse to be successful. Is there a command I can send to the scroll bar to make it register the changes? Or is there a better way to do this.
BTW I'm using MFC.