I found this question on StackOverflow. Basically, the user wanted to draw custom buttons on the titlebar.
I tried the code and realised it works in vista/7 only whe
I did some research into this as I implemented this too in my own multi-monitor solution. The way DisplayFusion and TeamViewer implemented this is overlaying a custom form over the desired window containing the buttons. You can use Spy++ to confirm this.
This is the general idea:
Getting and setting the Z position through the GetWindow and SetWindowPos API's.
Be aware that the DLL must be written in a native language. However you van use something like this to work around that problem:
Using Window Messages to Implement Global System Hooks in C#
And here is my result:
