How can i draw to or add a custom button to every window of all applications?


http://stackoverflow.com/q/32058232/49925?sgp=2

Comments

  1. First vote is -1 already. Ouch.

    So far as I know, you need to set up a custom title bar.  See http://stackoverflow.com/questions/3822609/documentation-and-api-samples-for-drawing-on-windows-aero-glass-dwm-gdi-gdi/3826784#3826784 and the fifth dot point. It points to a very useful blog post by Chris Rolliston: http://delphihaven.wordpress.com/2010/04/19/setting-up-a-custom-titlebar/ and http://delphihaven.wordpress.com/2010/04/22/setting-up-a-custom-title-bar-reprise/

    I point you to that answer because the other links there may also be useful.

    ReplyDelete
  2. I really wonder why anybody would downvote this question. Currently 2 down and 3 up votes.

    ReplyDelete
  3. for some reason, posting a question here seems to reduce the drama and downvotes.

    ReplyDelete
  4. Thomas Müller It is classic example of too broad and "gimme teh codez" question ;-)

    Posting it here reduced the drama because people are more interested to learn how that could be done than moderating SO.

    ReplyDelete
  5. Dalija Prasnikar the problem is that I don't really know where to start. The hints I got so far are about drawing on the title bar of my own program - I already knew how to do that - or are very broad too. (Which reminds me that I haven't looked at the question today.)

    ReplyDelete
  6. Thomas Müller I know what you mean. It is one of those things where you can research for days and don't get anywhere.

    Sometimes I wish SO would be more flexible to questions like yours. Question itself is clear and specific and it can be answered. If you would know from where to start you probably would not have to ask the question in the first place. 

    I guess that "too broad" policy was introduced because SO gets loads of low quality questions asked by newbies that never heard of Google (I often wonder how they managed to find SO), and that some line has to be drawn, but it is a shame that some more advanced topics get similar treatment.

    ReplyDelete

Post a Comment