1

Possible Duplicate:
Display the minimize and maximize buttons on a sizable tool window?
How to add an extra button to the window's title bar?

Hey guys i'm making a program and i'm just wondering if it is possible to add your own buttons to the program "head" i'll call it. Like this default windows borderstyle:

enter image description here

If you still don't get what i mean, I want to add more buttons like the "Minimize" and "Maximize" buttons to this borderstyle:

enter image description here

If you could tell me how or point me in the right direction i would appreciate it.

Community
  • 1
  • 1
Duncan Palmer
  • 73
  • 1
  • 1
  • 5

2 Answers2

2

I think it can help you to achieve your end:

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

Hossein Mobasher
  • 4,382
  • 5
  • 46
  • 73
1

Although it is possible by using the WinAPI, I would discourage you from doing that.

First off, it is not easy, and it requires a pretty good practice of windowing, messaging and similar API stuffs. Secondly, you should take in account the different "styles" that the various "Windows" offers. You know, you may switch among many color combination from within the desktop settings panel.

Instead, I would recommend you to create a borderless window, so that you may place any button with worrying. Also, I'd suggest to choose a very specific styling, so that the result will be aesthetically pleasant for the user's eyes.

Hope it helps.

Cheers

Mario Vernari
  • 6,649
  • 1
  • 32
  • 44