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

若如初见. 提交于 2019-12-23 13:08:26

问题


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:


回答1:


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.

At runtime:



来源:https://stackoverflow.com/questions/7789064/how-can-i-put-a-custom-button-on-the-title-bar

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!