开发者

C# - Custom program buttons? [duplicate]

This question already has answers here: Closed 11 years ago.

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 de开发者_JAVA百科fault windows borderstyle:

C# - Custom program buttons? [duplicate]

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

C# - Custom program buttons? [duplicate]

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


I think it can help you to achieve your end:

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


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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜