Getting the Text of the Title Bar

  • Thread starter Thread starter bic
  • Start date Start date
B

bic

How do I get the text from the Title Bar on Top in the PocketPC (ie..
When Tasks is running it has Tasks as the text at the top, when I
click on start it has Start on Top), this seems to be a simplier way
of finding out what the the current focused application. I am running
a background application.
 
Alex Yakhnin said:
I can hardly imagine why would you need that, but you can try to call GetForegroundWindow API to get a window handle of the currently active window and then GetWindowText. Granted, that application could override the Title Bar text with it's own value...

Thank.. I have tried that and it works.
 
Back
Top