摘要:之前的介绍中,我们用到了Button、Static Text、Checkbox这三个控件。这一节中我们将学习使用Edit Control(编辑框)、Combo Box控件,其中还包括Unicode转ANSI的方法、创建Open File Dialog、 读取文件、可变参数(这里用于生成日志)、文本框自动滚动的功能等。
阅读全文
摘要:上一节创建的窗体应用程序中,我们用到了Button和StaticText这两个控件。这一节中我们将学习使用Checkbox控件,并实现将窗体置顶和设置图标的功能。
阅读全文
摘要:可以发现上一节创建的窗体中,点击OK和Cancel两个按钮是没有任何反应的。现在我们来为他们添加退出对话框的功能,并演示如何新建子窗体。
阅读全文
摘要:A context menu extension is a COM object implemented as an in-proc server. The context menu extension must implement the IShellExtInit and IContextMenu interfaces. A context menu extension is instantiated when the user displays the context menu for an object of a class for which the context menu extension has been registered.
从新建项目起一步步演示如何创建一个上下文菜单项,最终将生成一个.dll文件并使之生效。
阅读全文
摘要:从新建项目起一步步演示如何创建一个图标标记 Handlers,最终将生成一个.dll文件并使之生效。
阅读全文
摘要:Icon overlays are small images placed at the lower-left corner of the icon that represents a Shell object in Windows Explorer or on the desktop. They are used to add some extra information to the object's normal icon. A commonly used icon overlay is the small arrow that indicates that a file or folder is actually a link. You can specify custom icon overlays for Shell objects by implementing and registering an icon overlay handler.
阅读全文