摘要: 对象的方法能定义成静态(static)、虚拟(virtual)、动态(dynamic)或消息处理(message)。请看下面 的例子: TFoo = class procedure IAmAStatic; procedure IAmAVirtual; virtual; procedure IAmADynamic; dynamic; procedure IAmAMess... 阅读全文
posted @ 2012-08-28 17:25 realnull 阅读(8802) 评论(0) 推荐(1) 编辑
摘要: 取得TcxLookupComboBox下拉列表中各项的内容 Properties.DataController.Values包含了所有内容,如果要取得当前选择行的内容,用以下代码 //cmb:TcxLookupComboBox; with cmb.Properties.DataController do ShowMessage(Values[FindRecordIndexByKey(cmb.Ed... 阅读全文
posted @ 2012-08-23 10:08 realnull 阅读(2145) 评论(0) 推荐(0) 编辑
摘要: xml<?xml version="1.0" encoding="utf-8"?> <Menus> <Menu id="0" name="首页"> <MenuItemTitle sid="01" mid="0" name="常用选项"> <MenuItem mid="0" tid="01" url="Home.aspx">后台首页< 阅读全文
posted @ 2012-05-16 18:07 realnull 阅读(485) 评论(0) 推荐(0) 编辑
摘要: (1)二进制数据类型 二进制数据包括 Binary、Varbinary 和 Image Binary 数据类型既可以是固定长度的(Binary),也可以是变长度的。 Binary[(n)] 是 n 位固定的二进制数据。其中,n 的取值范围是从 1 到 8000。其存储窨的大小是 n + 4 个字节。 Varbinary[(n)] 是 n 位变长度的二进制数据。其中,n ... 阅读全文
posted @ 2012-05-16 18:05 realnull 阅读(8103) 评论(0) 推荐(0) 编辑
摘要: ckeditor+ckfinder配置用法 一、使用方法: 1、在页面<head>中引入ckeditor核心文件ckeditor.js <script type="text/javascript" src="ckeditor/ckeditor.js"></script> 2、在使用编辑器的地方插入HTML控件<textarea> <textarea id="TextAr... 阅读全文
posted @ 2012-05-16 18:03 realnull 阅读(2045) 评论(0) 推荐(0) 编辑
摘要: 摘要:Windows编程和Dos编程,一个很大的区别就是,Windows编程是事件驱动,消息传递的。所以,要学好Windows编程,必须对消息机制有一个清楚的认识,本文希望能够对消息的传递做一个全面的分析。一、什么是消息?消息系统对于一个win32程序来说十分重要,它是一个程序运行的动力源泉。一个消息,是系统定义的一个32位的值,他唯一的定义了一个事件,向Windows发出一个通知,告诉应用程序某个事情发生了。例如,单击鼠标、改变窗口尺寸、按下键盘上的一个键都会使Windows发送一个消息给应用程序。消息本身是作为一个记录传递给应用程序的,这个记录中包含了消息的类型以及其他信息。例如,对于单击 阅读全文
posted @ 2012-05-16 17:06 realnull 阅读(8667) 评论(1) 推荐(0) 编辑
摘要: 永远记住,无论你是用 SDK 还是借用 VCL 来创建窗口,都要遵循 Windows 的游戏规则,即先注册窗口类,然后再创建窗口实例,在消息循环中写实现代码。你还要知道 Windows 已经为了我们预注册了多个窗口类,例如“Edit”、“ComboBox”,这时候我们要做的就是直接创建这些窗口,无需注册窗口类了;在 Delphi 中这一切更简单了,VCL 全部为你做好了,你只需简单地在设计窗体上拖... 阅读全文
posted @ 2012-05-16 17:04 realnull 阅读(1914) 评论(0) 推荐(0) 编辑
摘要: The following code examples demonstrate how to perform the following tasks associated with Windows messages and message queues. •Creating a Message Loop •Examining a Message Queue •Posting a Message •Sending a MessageCreating a Message LoopThe system does not automatically create a message queue for 阅读全文
posted @ 2012-05-16 15:16 realnull 阅读(226) 评论(0) 推荐(0) 编辑
摘要: 1.安装勾子用SetWindowsHookEx function来实现,对于这个函数先来看MSDN解释Installs an application-defined hook procedure into a hook chain. You would install a hook procedure to monitor the system for certain types of events. These events are associated either with a specific thread or with all threads in the same desktop 阅读全文
posted @ 2012-05-16 13:39 realnull 阅读(2134) 评论(0) 推荐(1) 编辑
摘要: 首先要获得设备环境的句柄,可以通过GetDC函数来获得,对于这个函数,MSDN上是这样说明的The GetDC function retrieves a handle to a device context (DC) for the client area of a specified window or for the entire screen. You can use the returned handle in subsequent GDI functions to draw in the DC. The device context is an opaque data struc.. 阅读全文
posted @ 2012-05-16 10:25 realnull 阅读(11202) 评论(2) 推荐(1) 编辑