7

Some Windows applications add buttons to the control box, which apparently is the name for the group of minimize, maximize, and close buttons. One such application is Skype, which has a button for switching from a one-window-that-contains-everything mode to a one-window-per-conversation mode and vice versa:

Skype's custom control box button

I'd like to know how you can do this. I've looked around and can't figure out how. I assume it would require P/Invoke and the Windows API, but I'm not sure what function I'd use.

Community
  • 1
  • 1
icktoofay
  • 126,289
  • 21
  • 250
  • 231
  • I know this is bit old, but did You managed to add this? I'm looking for a solution to add extra button that will be styled same as other buttons (minimize, maximize, close). If it's possible please share Your code. Thanks – Misiu Jan 28 '15 at 08:27
  • @Misiu: It’s been a while, but I think I asked this only out of curiosity and never actually implemented it in my application. The links in the accepted answer might help. – icktoofay Jan 29 '15 at 06:47

1 Answers1

1

I think one of these might be what you're looking for:

http://www.codeproject.com/kb/vb/transmenuandtitlebuttons.aspx

http://www.codeproject.com/kb/cs/mintraybtn.aspx

AaronLS
  • 37,329
  • 20
  • 143
  • 202