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?
Asked
Active
Viewed 519 times
0
-
You'll need to ask the author of that control. Only the standard Win32 progress bar has a standard interface you can use. – Deanna Aug 07 '12 at 08:51
1 Answers
1
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.

RRUZ
- 134,889
- 20
- 356
- 483
-
1Unless the "progress bar" is implemented by custom-drawing the `TPanel`, in which case this approach will not work, and the only way to get the progress information will be to parse the onscreen pixels of the `TPanel`. – Remy Lebeau Aug 07 '12 at 23:18