论坛


2009年12月29日 星期二

Delphi Webbrowser IE 窗口选择中,选中的文字内容

幸福苹果| 幸福苹果-delphi |17:32:00

如何用API函数或delphi取出当前IE窗口已经选中的文本信息字符串?我的程序如下:var   Doc: IHtmlDocument2;   TxtRange: IHtmlTxtRange;   S:string;begin   Doc :=IE.Document as IHtmlDocument2;   //IE: IWeb...

delphi PopupMenu 动态创建菜单

幸福苹果| 幸福苹果-delphi |17:28:00

2009-01-06 10:03动态地创建菜单,通常我们使用以下的语句PopupMenu1 := TPopupMenu.Create(Self);Item := TMenuItem.Create(PopupMenu1);Item.Caption := 'First Menu';Item.OnClick := MenuItem1Click;PopupMenu1.Items.Add(Item);Item := TMenuItem.Create(PopupMe...

GdiPlus[55]: 图像(七) 图像编码的参数

万一| 万一的 Delphi 博客 |17:25:00

  阅读: 3 评论: 0 作者:万一发表于 2009-12-29 17:25原文链接通过 IGPImage.GetEncoderParameterList 可以获取指定编码格式的参数列表;通过此列表可以遍历出各参数的指针: PGPNativeEncoderParameter(TGPNativeEncoderParameter 的指针);TGPNativeEncoderParamete...

delphi 获取所有应用程序窗口标题 类似任务管理器

幸福苹果| 幸福苹果-delphi |16:37:00

procedure TForm1.Button1Click(Sender: TObject);var    hCurWindow:HWnd;    WinText:array[0..255] of char;begin   memo1.Lines.Clear;   hCurWindow:=GetWindow(Handle,GW_HWNDFirst);   whi...

GdiPlus[54]: 图像(六) 图像解码与编码

万一| 万一的 Delphi 博客 |16:05:00

  阅读: 8 评论: 0 作者:万一发表于 2009-12-29 16:05原文链接GDI+ 能够打开某种格式的图像, 就会有对应的解码器; 能够保存为某种格式, 也会有对应的编码器.下面程序通过 IGPImageCodecInfoArray 与 IGPImageCodecInfo 获取了 GDI+ 能够编码与解码的格式:uses GdiP...

Delphi 任务管理器 获取窗口标题 获取窗口图标

幸福苹果| 幸福苹果-delphi |16:04:00

新建一个Application,在主窗口Form1上添加一个ListView1,一个Timer1, 一个Button1(结束选中进程)后写下面的代码即可。unit Unit1;interfaceusesWindows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,Dialogs, ComCtrls, ImgList, ExtCtrls, S...

Lazarus实战开发

幸福苹果| 幸福苹果-delphi |16:02:00

http://tech.ddvip.com/2009-09/1252726641132366.htmlLazarus实战开发之串口通信(WINCE/WIN32)Lazarus实战开发之数据库SQLite(WIN32/WINCE)WINCE上的RAD开发(二)-----KOL的平台搭建Lazarus实战开发之网络版(WIN32/WINCE)WINCE上的RAD开发(一)-----Lazarus的平台...

如何获取窗口的图标

幸福苹果| 幸福苹果-delphi |15:57:00

http://www.codesky.net/article/doc/200308/2003081937344771.htm经常有人问到如何获取窗口的图标,这里给出一个简单的方法:function MyGetWindowIcon(H:Hwnd):Hicon;begin   result:=GetClassLong(H,GCL_HICON); //第一种方法取图标   if ico=0...

Delphi ListView基本用法大全

幸福苹果| 幸福苹果-delphi |15:57:00

http://www.cnblogs.com/y232995558/archive/2009/04/10/1432812.html//增加项或列(字段)ListView1.Clear;ListView1.Columns.Clear;ListView1.Columns.Add;ListView1.Columns.Add;ListView1.Columns.Add;ListView1.Columns.Items[0].Caption:='id'...

让弹出窗口,弹窗,弹出式广告就地正法

幸福苹果| 幸福苹果-delphi |15:56:00

    每当我浏览网站的时候,那扑面而来的广告窗口总是弄得我心烦意乱.我下定决心要自己编一个查杀广告的程序.经过我的观察,发现了广告窗口和正常IE窗口的区别主要在于广告窗口没有标题栏和状态栏(其实它们也有,如果你不明白,请继续往下看!) &nbs...

用Delphi响应WMI事件(响应网线断开)

幸福苹果| 幸福苹果-delphi |15:55:00

需要在程序中响应网线断开的信息,用Delphi实现了一下。uses  WbemScripting_TLB, ActiveX, ComObj;typeTForm1 = class(TForm)    Button2: TButton;   procedure Button2Click(Sender: TObject);   proce...

Delphi 2010 Friday Afternoon Workshops

Bob Swart| Dr.Bob’s Delphi Notes |12:20:54

Starting in January 2010, I'll be organising a number of Dutch Delphi 2010 Friday Afternoon hands-on Workshops in my office in Helmond Brandevoort (NL).

GdiPlus[53]: 图像(五) 图像的属性(图像元数据)

万一| 万一的 Delphi 博客 |12:03:00

  阅读: 37 评论: 0 作者:万一发表于 2009-12-29 12:03原文链接相关方法和属性:IGPImage.GetPropertyItem(); { 获取属性项 } IGPImage.SetPropertyItem(); { 设置属性项 } IGPImage.RemovePropertyItem(); { 删除属性项 } IGPImage.PropertyIdList; { 获取?..

Delphi Programming Almanacs: 1998. - 2009. Something for Every Delphi Developer: Beginner or a Guru!

About.com| About.com Delphi Programming |02:00:30

inDelphi Almanacs:: According to Wikipedia, an almanac is anannual publication containing tabular information in a particular field or fields often arranged according to the calendar.ADelphi Programming Almanacwould then be an annual reference e-b...