|
|
|
|
Digital Clock Class |
   |
简 介:
The CGCClock class allows the developer to quickly place a clock in a user interface. It is publicly derived from the CGCColorStatic class to provide the ability to control the background and text colors, the font utilized, the border style and more.
The CGCClock class provides the capability to select between 12 hour format or 24 hour (sometimes referred to as "military time") format.
CGCClock 这个类可以让开发人员在用户界面中快速生成一个时钟。它派生于CGCColorStatic 可以控制背景色和文本颜色,可以设置字体,边界风格等等。
CGCClock可以选择12小时格式或24小时格式(有时称为军用时间)。
来源: https://www.codeguru.com/controls/ClockClass.shtml |
分 类:
|
许可证:
GNU General Public License (GPL) |
|
how to add a time-out to a standard MsgB |
   |
简 介:
Yet another simple little demo that shows how to add a time-out to a standard MsgBox. The only trick to using this is to realize that standard timers are blocked when used within the IDE, but are free to fire in an EXE. A quick call to FindWindow, followed by sending a WM_CLOSE is all it takes.
这个例子演示了如何在标准消息框中增加超时的功能。唯一的技巧是当在IDE中使用时标准定时器控件会被锁定,但在EXE中可以自由激活。在它收到WM_CLOSE 消息之后,快速调用了FindWindow。
来源: https://www.mvps.org/vb/ |
分 类:
|
许可证:
GNU General Public License (GPL) |
|
Editable FlexGrid/Grid Control in VB4/5/ |
   |
简 介:
This code shows how to use a TextBox control with a Grid.OCX (VB4) or a MSFlexGrid.OCX (VB5/6) control to make an editable grid control. It also demonstrates how to copy the selected Cells to the ClipBoard.
这段代码演示了用 TextBox控件生成和 Grid.OCX (VB4) 或 MSFlexGrid.OCX (VB5/6)控件生成一个可编辑的网格控件。它也演示了将选择的网格内容复制到剪贴板的技术。
来源: https://www.codeguru.com/vb_othctrl/1749.shtml |
分 类:
|
许可证:
GNU General Public License (GPL) |
|
Customizable Color Picker |
   |
简 介:
This customizable color picker was designed because I needed a color picker that could calculate itself when passed an array of colors. I didn't want to use a resource file, so the entire color dialog is created dynamically from memory. This makes using the control quick and easy. I have included methods for customizing the border sizes, number of well columns, well heights, and well shapes. The control is designed for loading colors at run-time (from a database,for example). There is not support for serialization, persistance to the registry, or an "other" button.
我设计这个可定制的颜色选取器,是因为我需要一个颜色选取器在传递给它一个颜色数组时,它可以自己计算。我不想使用资源文件,所以整个颜色对话框从内存中创建。这样可以快速而容易地使用这个控件。我也提供了定制边界大小、列的数量,高度和形状的配置方法。这个控件设计为在运行时加载颜色(例如,从数据库中)。还不支持序列化,注册表持久化,或一个“其它”按钮。
来源: https://www.codeguru.com/combobox//combo_color_picker_spagnoli.shtml |
分 类:
|
许可证:
GNU General Public License (GPL) |
|
Date "Countdown" class |
   |
简 介:
This class allows the developer to quickly place a countdown control in a user interface. It is publicly derived from the CGCColorStatic class to provide the ability to control the background and text colors, the font utilized, the border style and more.
这个类可以让开发人员在用户界面中快速生成一个“倒数计秒器”控件。它派生于CGCColorStatic 类,可以控制背景色和文本颜色,可以设置字体,边界风格等等。
来源: https://www.codeguru.com/controls/CountDownClass.shtml |
分 类:
|
许可证:
GNU General Public License (GPL) |
|
TimeZone |
   |
简 介:
Shows how to call the GetTimeZoneInformation API, and interpret the returned results. With this code, you can determine the name of the current time zone, whether your app is operating in Daylight or Standard time, what dates these settings are changed, how much the clock is adjusted, and what the offset is from Coordinated Universal Time (UTC).
TimeZone这个例子演示了调用 GetTimeZoneInformation API,并解释返回的结果。使用这一代码,你可以决定当前时区的名字,你的应用程序是使用半天制还是使用标准时间,这些设置改变了多少天,时钟调整了多少,以及和Coordinated Universal Time (UTC)的偏移值。
来源: https://www.mvps.org/vb/ |
分 类:
|
许可证:
GNU General Public License (GPL) |
|
Power Color Picker |
   |
简 介:
This new control derived from CWnd provides an interface for users to select colors for an object. It is more intuitive than CColorDialog in windows API.
Interface description :
right rectangle : luminance.
left rectangle : saturation on x axis, hue on y axis.
bottom rectangle : currently selected color.
这个派生自 CWnd 的新控件为用户选择颜色提供了界面。它比用Windows API的 CColorDialog 更加直观。
界面描述:
右边矩形:光照度。
左边矩形:X轴代表饱和度,Y轴代表色度。
底部矩形:目前选择的颜色。
来源: https://www.codeguru.com/controls/power_color_picker.shtml |
分 类:
|
许可证:
GNU General Public License (GPL) |
|
Consuming Unmanaged C++ Class Libraries |
   |
简 介:
Did you ever face the challenge of calling a regular (unmanaged) C++ class library from managed code? Well, I did, and obviously some of the folks on the discussion board did as well. So, why is it such a challenge?
In this tutorial, I will introduce a set of three sample projects to demonstrate the most basic concepts of writing a managed wrapper around an unmanaged C++ class library.
你曾经面对这样的挑战-从受托管的代码中调用一个普通的(不受托管的)C++类库吗?是的,我这样做到了,明显这一版面的其它他也做了。为什么这是一个挑战呢?
在这个教程中,我将引入一组由三个简单项目组成的例子,以演示为不受托管的C++类库编写托管封装器的基本概念。
来源: https://www.codeguru.com/Cpp/Cpp/cpp_managed/interop/article.php/c6867/ |
分 类:
|
许可证:
GNU General Public License (GPL) |
|
Creating a Group Combo Box |
   |
简 介:
The purpose of this article is to demonstrate a sample class to "group" the MFC CComboBox class. The grouping allows the user to make an assignment from a set of values.
这个项目的目的是演示一个“组” MFC CComboBox 类。分组可以让用户为一组值分配数值。
来源: https://www.codeguru.com/combobox//GroupCombo.html |
分 类:
|
许可证:
GNU General Public License (GPL) |
|
how to create layered windows in Windo |
   |
简 介:
Shows how to create "layered" windows in Windows 2000. This demo provides a drop-in ready class that can be used to either do an Alpha-blend for translucency ranging from totally opaque to completely transparent, or the class can be used to select a single color to be rendered transparent. In either mode, the entire form and all its child controls are affected.
这个例子演示了如何在Windows 2000中创建“分层”式的窗口。这个例子提供了一个即时使用的类,可以进行Alpha-blend半透明绘制(从完全不透明到完全透明),也可以选择单独的颜色来绘制透明效果。在任一模式下,整个窗体和子控件都会受到影响。
来源: https://www.mvps.org/vb/ |
分 类:
|
许可证:
GNU General Public License (GPL) |
|
|
|
|
|