In Win API how to get position of progressbar of another application, if it realized by TPanel of Delphi?

550 views Asked by At

need to get position of progress-bar of another application. MS Spy++ points that is TPanel. It can change colour and has numeral position state. How to get all of this in Win API?

1

There are 1 answers

1
RRUZ On

The TPanel component is not the Delphi wrapper for the Windows Progress Bar Control, so you are getting and using the wrong class, instead search for the TProgressBar class, from here you can use any of the Progress Bar Messages with the proper windows handle and the SendMessage method. For example to retrieve the current position of the progress bar use the PBM_GETPOS message.