摘要: VC ListCtrl中嵌入进度条[入库:2005年8月18日][来源]本文简介:选择自 oeichenwei 的 blog vc中在listctrl中嵌入进度条,截图如下:其实要实现这个非常容易,以下是自绘listctrl的代码,首先继承clistctrl,然后增加函数:void cprocesslist::oncustomdraw(nmhdr *pnmhdr, lresult *presult){//draw each item.set txt color,bkcolor....nmlvcustomdraw* plvcd = reinterpret_cast(pnmhdr);// take 阅读全文
posted @ 2012-09-21 19:06 雷盼 阅读(549) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Text;using System.Windows.Forms;using ZyjLib.Net;namespace WindowsApplication32{ public partial class Form1 : Form { public Form1() { I... 阅读全文
posted @ 2012-09-02 20:53 雷盼 阅读(434) 评论(0) 推荐(0) 编辑
摘要: 发现.NET版人气不行,发个文章大家看看.NET中的TcpListener很简单,但用起来似乎有点不爽,操作起来步骤太多了,于是便有了下文,对TcpListener的简单封装...希望大家顶个人气!:loveliness:共有二个文件组成ServerSocket.cs:using System;using System.Net;using System.Net.Sockets;using System.Threading;using System.Collections;namespace CXP.Net{ public class ServerSocket : TcpListener {.. 阅读全文
posted @ 2012-08-22 23:54 雷盼 阅读(322) 评论(0) 推荐(0) 编辑
摘要: 如何用Shell实现程序组快捷方式的添加作者 bood E-mail地址 boodweb@263.net关键词:Shell函数 COM(一)前言曾经在《电脑编程与维护》看到过一篇用DDE实现在程序组添加项目的方法,但是MSDN上明确指出应该用更加先进的Shell函数来实现,因此笔者在MSDN上仔细查找,终于在一篇名为“SHORTCUT: A SampleThat Manipulates Shortcuts”的文章中发现了这种方法。由于笔者初学COM不久,若有不当之处,请一定指出,感激不尽!(二)预备知识Windows的程序组中的内容,实际上就是一个特定目录下的一些文件夹和文件(一般在c:\Wi 阅读全文
posted @ 2012-08-22 23:38 雷盼 阅读(368) 评论(0) 推荐(0) 编辑
摘要: 1、Inno Setup 是什么?Inno Setup 是一个免费的 Windows 安装程序制作软件。第一次发表是在 1997 年,Inno Setup 今天在功能设置和稳定性上的竞争力可能已经超过一些商业的安装程序制作软件。关键功能:★ 支持现在所有正在使用的 32 位 Windows 版本: Windows 95,98,2000,Server 2003,XP,Me,NT 4.0 (不需要服务包)。 ★ 支持创建单个 EXE 格式的安装程序,使你的程序可以很方便地在网络上发表。同时也支持磁盘延伸。★ 标准的 Windows 2000/XP 样式向导界面。★ 定制安装类型,例如:完整安装,最 阅读全文
posted @ 2012-08-22 23:20 雷盼 阅读(607) 评论(0) 推荐(0) 编辑
摘要: 一个InnoSetup脚本是一个简单的ASCII文本文件。它的格式非常类似于.INI文件,如果你有这方面的经验你就会发现学习起来有多么的容易。就象下面的示例所显示的,脚本文件包括“段”(sections)和“项”(entries)。段名的两边始终有一对中括号“[]”,在[Setup]段中的每一项包括一个关键字和他的值,关键字和值用等于号“=”连接在一起。下面的这个示例说明了脚本文件是如何被组织的:[在这里添加段名,例如Setup]这是一个关键字=这是一个值这是其它的关键字=这是其它的值[在这里添加段名,例如Files]Source:"MYPROG.EXE";DestDir: 阅读全文
posted @ 2012-08-22 23:14 雷盼 阅读(628) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Text;using System.Windows.Forms;using System.Runtime.InteropServices;using IWshRuntimeLibrary;using System.IO;namespace WindowsApplication28{ public partial class Form1 : ... 阅读全文
posted @ 2012-07-23 07:47 雷盼 阅读(267) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Text;using System.Windows.Forms;using System.Reflection;using System.Security.Permissions;using System.IO;using System.Diagnostics; namespace chartest{ public partial clas... 阅读全文
posted @ 2012-07-22 03:38 雷盼 阅读(215) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Text;using System.Windows.Forms;using System.Net;namespace WindowsApplication26{ public partial class Form1 : Form { public Form1() { Initializ... 阅读全文
posted @ 2012-07-20 00:28 雷盼 阅读(153) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Text;using System.Windows.Forms;using LpSpace;using System.IO;using System.Data.SqlClient;namespace SelfUpdate{ public partial class Form1 : Form { public Form1(... 阅读全文
posted @ 2012-07-16 01:33 雷盼 阅读(135) 评论(0) 推荐(0) 编辑