How make stylistic buttons windows 7?

允我心安 提交于 2019-12-08 12:32:38

问题


I want use buttons on my application like this (see picture).

This isn't usual buttons, it have standard picture, caption and description.

Could anyone help me with it? (Post some code or something else)


回答1:


The button you mentioned is called a Command Link

Windows Vista and Version 6.00 introduced another kind of push button, the command link.
Visually, a command link is very different from a normal push button, but it has the same functionality.
A command link typically displays an arrow icon, a line of text, and additional text in a smaller font.

Here is a list of styles available for buttons.
http://msdn.microsoft.com/en-us/library/bb775951(VS.85).aspx

Note the constant BS_COMMANDLINK and BS_DEFCOMMANDLINK at the above weppage

If you create a button using the BUTTON class with the CreateWindow or CreateWindowEx function, you can specify any of the button styles listed

Design concepts for Command Link

Check this link to see the various types of buttons.
http://msdn.microsoft.com/en-us/library/bb775947(VS.85).aspx


Here is the code example for creating a Command Link in C#
Vista Command Link Control with C# / Windows Forms

Hope this helps.



来源:https://stackoverflow.com/questions/5007243/how-make-stylistic-buttons-windows-7

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