问题
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