向标题栏添加按钮 [英] Add a button to Title Bar

查看:121
本文介绍了向标题栏添加按钮的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何将按钮添加到另一个应用程序的标题栏中.在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 :(

 


这篇关于向标题栏添加按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆