问题描述
如何将按钮添加到另一个应用程序的标题栏中.在Windows 7 beta版中,MS添加了发送反馈",以将标签链接到每个窗口的标题栏.
How can I add a button to the title bar of another application. In the Windows 7 beta release MS added a "Send Feedback" link label to every window's title bar.
推荐答案
有一种简单的方法,
将表单边框样式更改为无,因此将没有系统定义的标题栏
Change the form border style to none, so there will be no system defined title bar
然后您尝试使用面板和按钮创建自己的标题栏
then you try your own title bar with panels and buttons
另一种方法是如此困难,
Another way is so hard,
您可能必须通过Window Subclassing绘制自己的标题栏
You may have to draw your own title bar through Window Subclassing
您必须重写Form的WndProc方法
You have to override WndProc method of the Form
您可能必须了解有关WndProc,窗口事件,窗口方法,图形等的更多信息:(
You may have to learn more about WndProc, Window Events, Window Methods, Graphics etc etc :(
这篇关于向标题栏添加按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!