标题栏上的图标
我刚刚发现了一些非常酷的东西,我很惊讶我没有更早注意到它。您见过在 Windows 7 上运行的写字板吗?如果有的话,您会注意到窗口标题栏的左上角有一些图标(保存、撤消/重做)。在实际的标题栏本身上!那有多酷?我想知道如何将该功能实现到我自己的程序中,但不知道从哪里开始。我去了 MSDN,然后迷路了,因为我不确定要真正寻找什么......有人可以帮助我吗?
如果您想要我正在谈论的内容的图片,我可以尝试将图片上传到 photobucket 或类似的地方?
谢谢杰斯
I just found something really cool and i'm surprised i didn't really notice it sooner. Have you ever seen WordPad running on Windows 7? If you have, you'll notice that on the top-left of the window's titlebar are a few icons (save, undo/redo). On the actual titlebar itself! How cool is that? I was wondering how i would implement that feature into my own programs but don't know where to start. I went to MSDN and then got lost because i wasn't sure of what to actually look for... Can somebody please help me?
If you would like a piccture of what i'm talking about i can try and upload a pic somewhere like maybe photobucket or similar?
Thank you
Jase
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
它是功能区用户界面的一部分。这是代码项目中的一些代码。
http://www.codeproject.com/KB/toolbars/WinFormsRibbon.aspx
It is part of the Ribbon ui. Here is some code from the code project.
http://www.codeproject.com/KB/toolbars/WinFormsRibbon.aspx
您可以使用一堆命令来创建支持多级撤消的系统。
You can use a stack of commands to create a system that supports multiple level undo.