Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB
ÈÈÃűêÇ©£º c c# c++ asp asp.net linux php jsp java vb Python Ruby mysql sql access Sqlite sqlserver delphi javascript Oracle ajax wap mssql html css flash flex dreamweaver xml
 ×îÐÂÎÄÕ : delphi

delphi TWebBrowser×é¼þʹÓÃÏê½â

delphi TWebBrowser×é¼þʹÓÃÏê½â
      ¸Ã×é¼þÊÇÒ»¸öä¯ÀÀÆ÷×é¼þ£¬¿ÉÒÔÏÔʾһ¸öÖ¸¶¨µØÖ·µÄÍøÒ³¡¢ÉèÖÃÍøÒ³´ò¿ªÊ±µÄÖ÷Ò³ÒÔ¼°¶ÔÍøÒ³½øÐÐÏà¹ØµÄ²Ù×÷£¬Í¬Ê±Ò²¿ÉÒÔ¶ÔHTMLÎļþ½øÐмôÇС¢¸´ÖÆ¡¢Õ³Ìù¡¢É¾³ýµÈ²Ù×÷¡£¸Ã
      ×é¼þÔÚInternet×é¼þÒ³ÖС£
      1£®ÊôÐÔ
      £¨1£©AddressBarÊôÐÔ
      ÉèÖÃÊÇ·ñÏÔʾµØÖ·À¸£¬ÔÚTWebBrowserÖÐûÓÐÓá£
      Óï·¨£º
      property AddressBar: WordBool;
      £¨2£©BusyÊôÐÔ
      È·¶¨Webä¯ÀÀÆ÷×é¼þÊÇ·ñÕýÔÚµ¼º½µ½Ò»¸öеÄURLµØÖ·»òÕýÔÚÏÂÔØÎĵµ¡£
      Óï·¨£º
      property Busy: WordBool;
      ʾÀý£º
      Èç¹û¸ÃÊôÐÔֵΪTrue£¬ÔòÔÚ¿ªÊ¼Ò»¸öеIJÙ×÷Ç°£¬¿ÉÓÃStop·½·¨ÖÐÖ¹µ±Ç°²Ù×÷£¬È»ºóÔÙµ¼º½µ½ÆäËûµÄÒ³Ã棬´úÂëÈçÏ£º
      procedure ......

Delphi ÖÐMd5»ñÈ¡£¨Indy 9£©







ÔÚDelphi×Ô´øµÄIndy¿Ø¼þÖÐÆäʵÊÇÌṩÁËMD2,MD4,MD5¶ÔÏóµÄ£¬ÎÒÃÇ¿ÉÒÔÖ±½ÓʹÓÃËüÃÇÀ´Íê³ÉMD5µÄÇ©ÃûËã·¨¡£¶ø²»ÐèÒªÔÙÈ¥ÕÒÆäËüµÄ
DLL»òÊÇPasÁË¡£
ÔÚUsesµ¥ÔªÖÐÒýÓà IdHashMessageDigest,IdGlobal, IdHash µ¥Ôª£¬ÔÙдÈçÏ´úÂë¼´¿ÉÒÔ´ïµ½MD5µÄʵÏÖ¡£
ʾÀý´úÂë
procedure TForm1.Button1Click(Sender: TObject);
var
MyMD5: TIdHashMessageDigest5;
Digest: T4x4LongWordRecord;
begin
MyMD5 := TIdHashMessageDigest5.Create;
Digest := MyMD5.HashValue('');
ShowMessage('32: ' + MyMD5.AsHex(Digest));  //ÏÔʾ32¸ö×Ö·û³¤¶ÈµÄMD5Ç©Ãû½á¹û
ShowMessage('16: ' + Copy(MyMD5.AsHex(Digest), 9, 16));  
//ÏÔʾ16¸ö×Ö·û³¤¶ÈµÄMD5Ç©Ãû½á¹û
end;
˵ Ã÷£º
  MyMD5.HashValue º¯ÊýÖпÉÒÔÊÇÒ»¸ö×Ö·û´®»òÊÇÒ»¸öÁ÷¶ÔÏó,Ëü·µ»ØµÄ½á¹ûÀàÐÍΪ T4x4LongWordRecord
µÄMD5Ç©Ãûºó½á¹û
  MyMD5.AsHex  º¯ÊýÊǽ«T4x4LongWordRecordµÄMd5Ç©Ãûת»»³ÉΪʮÁù½øÖƵÄMD5Ç©Ãû×Ö·û´®¡£ ......

Delphi ÖÐ FindWindow ºÍ FindWindowEx µÄÓï·¨ºÍÓ÷¨

 Delphi ÖÐ FindWindow ºÍ FindWindowEx µÄÓï·¨ºÍÓ÷¨
FindWindow(
lpClassName,        {´°¿ÚµÄÀàÃû}
lpWindowName: PChar {´°¿ÚµÄ±êÌâ}
): HWND;              {·µ»Ø´°¿ÚµÄ¾ä±ú; ʧ°Ü·µ»Ø 0}
//FindWindowEx ±È FindWindow ¶à³öÁ½¸ö¾ä±ú²ÎÊý:
FindWindowEx(
Parent: HWND;     {Òª²éÕÒ×Ó´°¿ÚµÄ¸¸´°¿Ú¾ä±ú}
Child: HWND;      {×Ó´°¿Ú¾ä±ú}
ClassName: PChar; {}
WindowName: PChar {}
): HWND;
{
Èç¹û Parent ÊÇ 0, Ôòº¯ÊýÒÔ×ÀÃæ´°¿ÚΪ¸¸´°¿Ú, ²éÕÒ×ÀÃæ´°¿ÚµÄËùÓÐ×Ó´°¿Ú;
Èç¹û ÊÇ HWND_MESSAGE, º¯Êý½ö²éÕÒËùÓÐÏûÏ¢´°¿Ú;
×Ó´°¿Ú±ØÐëÊÇ Parent ´°¿ÚµÄÖ±½Ó×Ó´°¿Ú;
Èç¹û Child ÊÇ 0, ²éÕÒ´Ó Parent µÄµÚÒ»¸ö×Ó´°¿Ú¿ªÊ¼;
Èç¹û Parent ºÍ Child ͬʱÊÇ 0, Ôòº¯Êý²éÕÒËùÓеĶ¥²ã´°¿Ú¼°ÏûÏ¢´°¿Ú.
}
//²âÊÔ1: ÊÔ×ÅÕÒÕÒн¨³ÌÐòÖ÷´°¿ÚµÄ¾ä±ú
var
h: HWND;
begin
{ÏÖÔÚÎÒÃÇÖªµÀ´°¿ÚµÄ±êÌâÊÇ: Form1¡¢´°¿ÚµÄÀàÃûÊÇ: TForm1}
h := FindWindow('TForm1', 'Form1');
ShowMessage(IntToStr(h));  ......

delphiʵÏÖ×Ö·û´®ÖÐÊý×ÖµÄÅжϼ°ÏàÓ¦Êý×ÖÀÛ¼Ó

×î½üÃæÊÔÁËÒ»¼ÒÆóÒµ,ÏÂÃæÓÐÒ»µÀ´ÓÀ´Ã»ÓÐÏë¹ýµÄÎÊÌâ,µ±Ê±ÓÐ˼·,²»¹ýд²»³öÀ´.»ØÀ´ºó,µ÷ÊÔÁËÒ»ÏÂ,·¢ÏÖ»¹ÊÇÓÐÄѶȵÄ,дÉÏÀ´¿´´ó¼ÒÊÇ·ñ»¹ÓиüÓÅ»¯µÄд·¨,»¶Ó­ÌÖÂÛ:
ÏÂÃæʵÏÖ½«×Ö·û´®"10ad200d3" ÖеÄÊý×ֺϼÆ,10+200+3=213
var s1:string;
var i:integer;
var n1:integer;
var tem1: string;
var tem2:integer;
  s1:='10ad200d3';  //  Òª´¦ÀíµÄ×Ö·û´®
  tem1:='';         //ÓÃÀ´´æ·ÅµÃµ½µÄÊý×ÖÐÍ×Ö·û
  tem2:=0;          //ÓÃÀ´´æ·ÅºÏ¼ÆÊý
  n1:=1;            //ÓÃÀ´´æ·Åͳ¼Æµ½Î»Êý £¬¼´ÏÖʱÅжϵ½ÄÄһλÖÃÁË
  for i:=1 to length(s1) do
  begin
//µ±Óöµ½×Ö·ûʱ
       if not (s1[i] in ['0'..'9','.']) then  //ÅжÏ×Ö·û´®ÖÐij¸ö×Ö·ûÊÇ·ñÊÇÊý×Ö
       begin
        if i<>1 then      //µ±µÚÒ»¸ö¾ÍÊÇ×Ö·ûʱ£¬¶ÔÓÚ±¾À ......

DelphiʼþµÄ¹ã²¥


    Ã÷Ìì¾ÍÊÇÎåÒ»½ÚÁË£¬ÐÁ¿àÁ˺ü¸¸öÔ£¬½è´Ë»ú»áÓ¦¸Ã¾¡Çé·ÅËÉÒ»·¬¡£¿ÉÊÇÏëµ½BlogºÃ¾ÃûÓÐдÎÄÕ£¬ËƺõȱЩʲôËƵġ£Õ⼸¸öÔÂÀ´ÔÚÏîÄ¿ÖÐÓÖÔö³¤ÁËÐí¶à¾­Ñ飬ѧµ½Ðí¶àʵ¼ÊÓ¦ÓõÄ֪ʶ¡£²»Èç°ÑһЩ±È½ÏÓÐÓõļǼÏÂÀ´£¬¹©ÅóÓÑÃDzο¼¿ÉºÃ¡£
ÎÒÏëµ½DelphiµÄʼþ£¬ÄÇ¿ÉÕæÊǸö·½±ãµÄ¶«Î÷£¬³õѧÕßÔÚ´°ÌåÉÏÀ­¼¸¸ö¿Ø¼þ£¬²¢Ö¸¶¨ËüÃǵÄʼþ£¬Ð´¼¸¾ä´úÂ룬Á¢¿Ì¾ÍµÃµ½ËûÃÇÏëÒªµÄЧ¹û¡£¿ÉÊÇʼþÔÚ·½±ãµÄͬʱҲÓÐÒ»¸ö²»×ãÖ®´¦£¬¾ÍÊÇÖ»ÄÜÖ¸¶¨Ò»¸ö½ÓÊÕʼþµÄ¶ÔÏó£¬ÕâÔÚijЩӦÓÃÖлáÊÜÊÕÏÞÖÆ£¬±ÈÈç¶àÊÓͼ¶ÔÓ¦Ò»¸öÒµÎñÂß¼­Ê±£¬µ±Ò»¸öÒµÎñ¶ÔÏóÏë֪ͨÊÓͼ¸üÐÂËüÃǵÄ״̬£¬Èç¹ûÓÃʼþ£¬ÄÇÖ»ÄÜÓÐÒ»¸öÊÓͼµÃµ½Í¨Öª¡£
ÓÐûÓа취ÈöÔÏó´¥·¢Ê¼þʱ£¬¶à¸ö¶ÔÏóͬʱÄÜÊÕµ½ÄØ£¿Æäʵ×ÐϸһÏ룬»¹ÊÇÓÐͦ¶àµÄ£¬¸ù±¾µÄ¾ÍÊÇά»¤Ò»ÕŽÓÊÕʼþ¶ÔÏóµÄÁÐ±í£¬Ê¼þ·¢Éúʱ£¬±éÀúÁÐ±í²¢µ÷ÓÃÏàÓ¦µÄ·½·¨¡£±¾ÎĽéÉÜÁ½ÖÖ·½·¨£¬ÕâÁ½ÖÖ·½·¨¶¼±È½ÏºÃÓá£
µÚÒ»ÖÖ·½·¨ÊÇ´ÓApplicationEvents¿Ø¼þµÄʵÏÖ·½Ê½Ñ§À´µÄ¡£ApplicationEventsÊÇΪÁË·½±ãµØ´¦ÀíApplicationµÄËùÓÐʼþ£¬Ò»¸ö³ÌÐòÖзŶà¸öApplicationEvents£¬ËüÃǶ¼ÄÜͬʱ´«µÝApplicationµÄʼþµ½Ê¼þ½ÓÊÕÀàÖУ¬ÏÂÃæÊÇÒ»¸öÀý×Ó£¬ÔÚÒ»¸ö´°ÌåÉÏ·ÅÁ½¸öApplicatio ......

DelphiÖÐÈýÖÖ·½·¨»ñÈ¡WindowsÈÎÎñÀ¸µÄ¸ß¶È

µÚÒ»ÖÖ£ºÐèÒªÒýÓÃWindowsµ¥Ôª
ShowMessage(IntToStr(GetSystemMetrics(SM_CYSCREEN)-GetSystemMetrics(SM_CYFULLSCREEN)-GetSystemMetrics(SM_CYCAPTION)));
µÚ¶þÖÖ£ºÐèÒªÒýÓÃWindowsµ¥Ôª
function GetSystemTaskBarHeight:Integer;
var
R:TRect;
begin
SystemParametersInfo(SPI_GETWORKAREA,0,@R,0);
Result:=Screen.Height-R.Bottom;
end;
µÚÈýÖÖ£ºÒªÒýÓÃShellAPIµ¥Ôª
function GetTaskBarRect: Integer;
var
TBData: TAPPBARDATA;
begin
TBData.cbSize := SizeOf(TAPPBARDATA);
SHAppBarMessage(ABM_GETTASKBARPOS, TBData);
Result :=Screen.Height-TBData.rc.Top;
end; ......
×ܼǼÊý:644; ×ÜÒ³Êý:108; ÿҳ6 Ìõ; Ê×Ò³ ÉÏÒ»Ò³ [9] [10] [11] [12] 13 [14] [15] [16] [17] [18]  ÏÂÒ»Ò³ βҳ
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ