|
|
|
|
How to add a new node to a Sheridan Acti |
   |
简 介:
How to add a new node to a Sheridan Active TreeView control without popup boxes.
这个项目演示了如何在Sheridan Active TreeView 控件中增加一个新节点,而不弹出对话框。
来源: https://www.codeguru.com/vb_othctrl/1822.shtml |
分 类:
|
许可证:
GNU General Public License (GPL) |
|
Multicolumn Combobox |
   |
简 介:
Multicolumn Combobox
多列组合列表框
来源: https://www.codeguru.com/combobox//multicol_combo.shtml |
分 类:
|
许可证:
GNU General Public License (GPL) |
|
CMacButton, CMacCheckBox & CMacRadioButt |
   |
简 介:
These three classes are my attempt at recreating the standard buttons on the Macintosh. The normal appearance of the buttons duplicates the 3D look of the more recent MacOS versions, but an old-style "flat" look can also be used by setting the button's Flat style in the resource editor.
CMacButton, CMacCheckBox & CMacRadioButton这三个类是我创建建的试图模仿Macintosh中的按钮。这些按钮的外面模仿了最新的 MacOS版本的3D外观,但在资源编辑器中仍旧使用老风格的扁平外观。
来源: https://www.codeguru.com/controls/macbuttons.shtml |
分 类:
|
许可证:
GNU General Public License (GPL) |
|
TaskList |
   |
简 介:
Shows how to use EnumWindows to iterate through all the top-level windows, filtering to build a Task List replica. Also shows how to get around the lame restrictions on SetForegroundWindow imposed in Win98 and Windows 2000.
Completely rewritten (summer 2000) to recreate the Applications tab of NT's Task Manager. The new and improved CTaskList class now offers both AltTab and TaskMgr modes of window detection, as well as retrieval of window captions and icons. Also shows two ways -- documented automation and undocumented shell32 call -- to invoke the standard system Run dialog.
TaskList这个例子演示了如何使用EnumWindows 来枚举所有的顶层窗口,建造一个任务条的替换。也演示了在 Win98 和 Windows 2000中SetForegroundWindow 函数的一些缺陷。
完全重写的版本重新创建了NT任务条的应用程序标签。新改进的CTaskList 类现在提供了窗口检测的AltTab and TaskMgr方式,以及检索窗口标题和图标。也演示了两种方法:文档化自动化和非文档化shell32 调用-调用标准的系统运行对话框。
来源: https://www.mvps.org/vb/ |
分 类:
|
许可证:
GNU General Public License (GPL) |
|
Determining Item / Subitem Clicked in a |
   |
简 介:
This small code sample shows how to detect where the mouse was clicked in a listview.
这个小程序演示了如何检测鼠标点击了列表视图的哪一个项目。
来源: https://www.codeguru.com/vb_listview/2017.shtml |
分 类:
|
许可证:
GNU General Public License (GPL) |
|
Cool Font selection combo |
   |
简 介:
Cool Font selection combo
非常酷的字体选择下拉组合列表框
来源: https://www.codeguru.com/combobox//fontcombo.shtml |
分 类:
|
许可证:
GNU General Public License (GPL) |
|
Cool Owner Draw Engine |
   |
简 介:
The CCoolOwnerDrawEngine class is not a control class by its own, or even a CWnd derived class. As a matter of fact, its objects work as aggregateable members of Owner Draw Controls objects. By instantiating a CCoolOwnerDrawEngine as a member object, such a control can rely on delegation to let the engine taking care of the complex draw and format operations.
CCoolOwnerDrawEngine本身不是一个控件类,甚至不是从 CWnd 派生的类。事实上它的对象是作为Owner Draw Controls 的聚合对象。通过将CCoolOwnerDrawEngine 安装为一个成员对象,这样的一个控件可以代理引擎来处理复杂的绘制和格式化操作。
来源: https://www.codeguru.com/controls/CoolODE.shtml |
分 类:
|
许可证:
GNU General Public License (GPL) |
|
TextOutline |
   |
简 介:
This one's really fun! It uses GDI paths to draw the font outlines. All sorts of really wonderful special effects can be created with the CTextOutlineEx class. Properties are offered for FillColor, OutlineColor, and Font, as well as whether the text should be Filled, Outlined, OutlineBehind, and at what Angle. Works with any hDC. You can either use the GDI objects already selected into the hDC, or the class will do that for you. Like I said, really fun!
使用GDI的路径来绘制字体的轮廓是一个有趣的话题!用CTextOutlineEx 类可以创建所有这些特殊效果。提供的属性有FillColor, OutlineColor, 和 Font,以及文本是否需要被填充、 Outlined, OutlineBehind,和绘制的角度。可以使用任意的 hDC。你可以使用已经选入 hDC的GDI对象,或者选择自定义的类!就像我说的,很有趣!
来源: https://www.mvps.org/vb/ |
分 类:
|
许可证:
GNU General Public License (GPL) |
|
Raising ColumnResize event in MSFlexGrid |
   |
简 介:
While working with MSFlexGrid control the only possibility to enter data is to place another control over it. But the main problem with such 'Flying Dutchman' is the following: when grid is resizing no event occurs, and your control may lose fit. So the task is: How do I catch or emulate the ColumnResize event?
The decision provided is based on the event sequence. In a few words: when user simply clicks over the grid certain events come in the certain order which differs from the order of event occurring when user changes the column width.
当使用MSFlexGrid 控件时,唯一可能输入数据的方法是在它上面放置另一个控件。但这种方法的主要问题是:当网格重新调整大小时没有事件发生,你的控件可能变得不匹配。所以任务是:如何捕获或列举ColumnResize事件。
方法是基于事件队列。简单说:当用户点击了网格,某些事件会按一定顺序发生,当用户改变列大小时发生的事件的顺序和其它事件不一样。
来源: https://www.codeguru.com/vb_othctrl/1721.shtml |
分 类:
|
许可证:
GNU General Public License (GPL) |
|
ComboBox with Tree Dropdownp |
   |
简 介:
ComboBox with Tree Dropdown
带有树状下拉选项的组合列表框。
来源: https://www.codeguru.com/combobox//ComboWithTreeDropdown.html |
分 类:
|
许可证:
GNU General Public License (GPL) |
|
|
|
|
|