7

I want to insert a button inside window title bar just like TeamViewer does.

teamviewer button

Any ideeas how can i do this in delphi and make it run on all windows systems ?

Any starting point will be greatly appreciated.

opc0de
  • 11,557
  • 14
  • 94
  • 187
  • 2
    Not at all easy if you want to support aero – David Heffernan Dec 25 '11 at 19:56
  • when team viewer inserts the button if aero is enabled is displayed just like in the picture so i guess it doesn't support aero ... i am looking into a method not a perfect one but just an ideea on how i can achieve this – opc0de Dec 25 '11 at 20:05
  • you need to handle WM_NCPAINT to replicate that behaviour – David Heffernan Dec 25 '11 at 20:28
  • so i need to inject a module into the process address space – opc0de Dec 25 '11 at 20:55
  • You want to do this in other processes? – David Heffernan Dec 25 '11 at 21:27
  • Chris Rolliston wrote an article about this, too much for me to write an answer of the subject. See [setting-up-a-custom-titlebar](http://delphihaven.wordpress.com/2010/04/19/setting-up-a-custom-titlebar/). – LU RD Dec 25 '11 at 21:39
  • And he also wrote a follow up article, correcting some flaws. [setting-up-a-custom-title-bar-reprise](http://delphihaven.wordpress.com/2010/04/22/setting-up-a-custom-title-bar-reprise/) – LU RD Dec 25 '11 at 21:51
  • And here is a duplicate in SO, [how-to-draw-button-in-title-bar-like-in-google-chrome](http://stackoverflow.com/questions/4985929/how-to-draw-button-in-title-bar-like-in-google-chrome) – LU RD Dec 25 '11 at 21:58
  • Have you looked at some skinning components, I think some of them might allow extra title buttons. –  Dec 26 '11 at 01:23
  • @DavidHeffernan of course i want to do it to all visible windows just like teamviewer does it – opc0de Dec 26 '11 at 09:06

1 Answers1

2

Please refer

http://delphihaven.wordpress.com/2010/04/19/setting-up-a-custom-titlebar/

I think it will help you very much

Vibeeshan Mahadeva
  • 7,147
  • 8
  • 52
  • 102