How can I put a custom button on the title bar? [d

2019-06-25 23:23发布

Possible Duplicate:
Non client painting on aero glass window

I want to have a button like Skype's compact-view button on the title bar. How can I do that?

For example:

Vista-style title bar with an extra button to the left of the minimize button

1条回答
我想做一个坏孩纸
2楼-- · 2019-06-25 23:44

You can use the JvCaptionButton which comes free in the very-nice-but-very-large open-source free JVCL library. It is a general purpose "caption button". Caveat: The appearance is not purely native and not Windows-7-aero-themed.

This button does not decide what to take out of your app, you would have to write the code to make the form go into compact mode, and you could click this caption-bar button, and write the code in its OnClick Event.

enter image description here

At runtime:

enter image description here

查看更多
登录 后发表回答