[译]RGB滑块
By robot-v1.0
本文链接 https://www.kyfws.com/applications/rgb-slider-zh/
版权声明 本博客所有文章除特别声明外,均采用 BY-NC-SA 许可协议。转载请注明出处!
- 2 分钟阅读 - 556 个词 阅读量 0[译]RGB滑块
原文地址:https://www.codeproject.com/Articles/4145/RGB-Slider
原文作者:Siavash
译文由本站 robot-v1.0 翻译
前言
OwnerDraw Slider, Bitmap DC , Color Frame
OwnerDraw滑块,位图DC,彩色框
介绍(Introduction)
这是我的第一篇文章,希望您喜欢.我用VC ++.NET编写的.(This is my first article and I jope you enjoy it. I wrote this with VC++.NET.)
类的简要说明(Brief description of Classes)
-
_CMySlider
类(class)
这是图形滑块的类,具有渐变,有点像photoshop RGB滑块.(It’s a class for graphical slider that has a gradient, and a little look like the photoshop RGB sliders.)
-
_CColorFrame
类(class)
此类用于预览您创建的颜色.(This class is for previewing the color that you created.)
-
CBitmapDC
类(class)
哦,我喜欢这个.它是更有用的类之一.我使用该类来获得流畅且快速的绘图.(Oh I like this one. It’s one of the more useful class . I use this class to get smooth and fast drawing.)
怎么运行的(How it works)
- 我在对话框上创建了三个滑块和一个静态框.(I created three sliders and a staticbox on my dialogbox.)
- 增加了三个(Added three)
CCtrlSlider
滑块和变量(variables for the sliders and)CStatic
用于staticbox.(for staticbox.) - 已变更(Changed)
CCtrlSlider
至(to)_CMySlider
和(and)CStatic
至(to)_CColorFrame
.(.) - 就这样 :-)(That’s all :-))
许可
本文以及所有相关的源代码和文件均已获得The Code Project Open License (CPOL)的许可。
VC7.0 C++ VC6 Win2K WinXP Windows .NET1.0 MFC Visual-Studio Dev 新闻 翻译