-
基本对话框的使用
资源描述利用MFC,学习树形控件,Group Box, 静态文本,编辑框,按钮,List Control 和 List Box等基本知识的使用。
- 2022-01-22 11:26:20下载
- 积分:1
-
GlowButton - 发光的按钮控件
翻译 maninwest@Codeforge 作者:John Underhill @ Codeproject最近我在查看 KMP Player 软件上的一些图形元素(如果你想看看好的图形设计,我建议你也查看一下)。我在项目中需要的是一个简单的发光按钮控件,用于玩家控制的,这不是什么太神奇的东西,只是在鼠标悬停时能够改变颜色。让图像更改颜色很简单,只需修改 ImageAttribute 的颜色矩阵:private void DrawColoredImage(Graphics g, Image img, Rectangle bounds, Color clr)
{
using (ImageAttributes ia = new ImageAttributes())
{
ColorMatrix cm = new ColorMatrix();
// convert and refactor color palette
cm.Matrix00 = ParseColor(clr.R);
cm.Matrix11 = ParseColor(clr.G);
cm.Matrix22 = ParseColor(clr.B);
cm.Matrix33 = ParseColor(clr.A);
cm.Matrix44 = 1f;
// set matrix
ia.SetColorMatrix(cm);
// draw
g.DrawImage(img, bounds, 0, 0, img.Width,
img.Height, GraphicsUnit.Pixel, ia);
}
}示例代码中的 ParseColor 会将位转化为浮点值。 请点击左侧文件开始预览 !预览只提供20%的代码片段,完整代码需下载后查看 加载中 侵权举报
- 2023-07-25 02:55:04下载
- 积分:1
-
小型的计算器程序,类似于微软操作系统自带的计算器,主要是按纽的使用。...
小型的计算器程序,类似于微软操作系统自带的计算器,主要是按纽的使用。-small calculator program, similar to the Microsoft operating system"s own calculators, is the use of button.
- 2022-03-15 10:46:23下载
- 积分:1
-
cwinxpbuttonst是CButtonST类派生类模拟看N的感觉…
CWinXPButtonST is a CButtonST derived class that emulates the look n feel of the buttons (or menu items) found in Office XP and, maybe, in Windows XP. Button borders can have square or rounded corners.
This is just an example on how CButtonST can be used to create other button styles not supplied by defaultCButton
- 2022-07-04 23:20:46下载
- 积分:1
-
button sound effect XP, 15 in any style you choose, have a total for you. Give i...
button良好的XP效果,15中风格任你选择,总有一个适合你。试试吧。-button sound effect XP, 15 in any style you choose, have a total for you. Give it a try.
- 2022-02-12 09:03:49下载
- 积分:1
-
WinCE achieve Tap and Hold function
WinCE 上实现 Tap and Hold 功能-WinCE achieve Tap and Hold function
- 2022-03-03 04:08:41下载
- 积分:1
-
generally flat button, but with xp style, usage is still relatively big
一般的扁平按钮,同时具有xp风格,用途还是比较大的
-generally flat button, but with xp style, usage is still relatively big
- 2022-02-13 00:28:15下载
- 积分:1
-
一个简单的货架系统,可以任意装货和去货物。
一个简单的货架系统,可以任意装货和去货物。-a simple shelf systems, and can be loaded to any goods.
- 2023-01-31 00:10:04下载
- 积分:1
-
做出正确的翻转
make correct rollover
- 2022-07-11 06:40:17下载
- 积分:1
-
一个LED时钟显示程序,用vc实现,效果挺不错,支持一下啊~
一个LED时钟显示程序,用vc实现,效果挺不错,支持一下啊~-A LED clock display program with vc realize the results very good, support you ah ~
- 2022-03-17 18:54:49下载
- 积分:1