亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? myfun.pas

?? 幾十種常用函數!平時編程絕對用的著
?? PAS
?? 第 1 頁 / 共 5 頁
字號:
  Result := GetWindow(Result, GW_CHILD);
  SetLength(S, 40);
  GetClassName(Result, PChar(S), 39);
  if PChar(S) <> 'SysListView32' then Result := 0;
end;
//______________________________________________________________________________

{----------------TIconHintX------------------}
{    重載ActivateHint,調整輸出字符長度      }
{--------------------------------------------}
procedure TIconHintX.ActivateHint(Rect: TRect; const AHint: string);
type
  TAnimationStyle = (atSlideNeg, atSlidePos, atBlend);
const
  AnimationStyle: array[TAnimationStyle] of Integer = (AW_VER_NEGATIVE,
    AW_VER_POSITIVE, AW_BLEND);
var
  Animate: BOOL;
  Style: TAnimationStyle;
  pos:Tpoint;
begin
  GetCursorPos(Pos);
  FActivating := True;
  try
    Caption :='  '+AHint; (*前面價2個空格讓圖標可以正常顯示*)
    Inc(Rect.right,12);
    Inc(Rect.Bottom,4);
    UpdateBoundsRect(Rect);
    if Rect.Top + Height > Screen.DesktopHeight then
      Rect.Top := Screen.DesktopHeight - Height;
    if Rect.Left + Width > Screen.DesktopWidth then
      Rect.Left := Screen.DesktopWidth - Width;
    if Rect.Left < Screen.DesktopLeft then Rect.Left := Screen.DesktopLeft;
    if Rect.Bottom < Screen.DesktopTop then Rect.Bottom := Screen.DesktopTop;
    SetWindowPos(Handle, HWND_TOPMOST, Rect.Left, Rect.Top, Width, Height,SWP_NOACTIVATE);
    if (GetTickCount - FLastActive > 250) and (Length(AHint) < 100) and
       Assigned(AnimateWindowProc) then
    begin
      SystemParametersInfo(SPI_GETTOOLTIPANIMATION, 0, @Animate, 0);
      if Animate then
      begin
        SystemParametersInfo(SPI_GETTOOLTIPFADE, 0, @Animate, 0);
        if Animate then
          Style := atBlend
        else
          if Pos.Y > Rect.Top then
            Style := atSlideNeg
          else
            Style := atSlidePos;
        AnimateWindowProc(Handle, 100, AnimationStyle[Style] or AW_SLIDE);
      end;
    end;
    ParentWindow := Application.Handle;
    ShowWindow(Handle, SW_SHOWNOACTIVATE);
    Invalidate;
  finally
    FLastActive := GetTickCount;
    FActivating := False;
  end;
end;
//______________________________________________________________________________
{function TIconHintX.CalcHintRect(MaxWidth: Integer; const AHint: string;
  AData: Pointer): TRect;
var
  Hicon:TBitmap;
begin
  Hicon:=TBitmap.Create;
  Hicon.LoadFromResourceName(Hinstance,'HICON');
 //-----
  Result := inherited CalcHintRect(MaxWidth,AHint, AData);
  Result.Right := (Length(AHint) * 5) + Hicon.Width*4;
  Result.Bottom := (Hicon.Height)+4;
  Hicon.Free;
end;    }
//______________________________________________________________________________

procedure TIconHintX.Paint;
var
  Hicon:TBitmap;
  R: TRect;
begin
  inherited;
  R := ClientRect;
  Inc(R.Left, 20);
  Inc(R.Top, 2);
  //-------
  Hicon:=TBitmap.Create;
  Hicon.LoadFromResourceName(Hinstance,'HICON');
  color:=$00EEFDF2;
  Canvas.Draw(1,1,Hicon);
  SendMessage(Handle, WM_NCPAINT, 0, 0); //畫提示欄邊框
  Hicon.Free;
end;
//______________________________________________________________________________

{-------------------------------}
{     設置parent窗體的字體      }
{-------------------------------}
procedure TFun.SetParentWinDefFont(Sender:TObject;const defFont: Tfont);
begin
   if defFont=nil then
   begin;
     {設置默認}
     TForm(Sender as TComponent).Font.Name:='宋體';
     TForm(Sender as TComponent).Font.Size:=9;
     TForm(Sender as TComponent).Font.Height:=-12;
     TForm(Sender as TComponent).Font.Color:=clblack;
     TForm(Sender as TComponent).Font.Charset:=GB2312_CHARSET
   end else
     (*用戶定義*)
     TForm(Sender as TComponent).Font:=defFont
end;
//______________________________________________________________________________

{---------------------------}
{      計算x的Y次方         }
{---------------------------}
function TFun.Squ(X, Y: integer): integer;
var
  i,sum:integer;
begin
  sum:=1;
  for i:=1 to Y do  sum:=sum*X;
  result:=sum
end;
{浮點型}
function TFun.Squ(X: Double; Y: integer): Double;
var
  i:integer;
  dsum:double;
begin
  dsum:=1;
  for i:=1 to Y do  dsum:=dsum*X;
  result:=dsum
end;
//______________________________________________________________________________

{-------------------------------------------------------}
{在指定的chart控件上畫1條數直線,并返回mouse所在的index }
{處理鼠標在Chart里移動的過程,在最近的數據點上畫一直線,}
{X表示是鼠標的X坐標位置,iValueIdx是回傳的數據點索引號  }
{chart的index 從0開始的。。要注意                       }
{-------------------------------------------------------}
Function TFun.ChartMoveLine(Chart:Tobject;MousePos_X:Integer;LineColor:TColor):integer;
Var
  i,x:Integer;
  iXPosition,iValueIdx,iValueCount:Integer;
  dXValue : Double;
begin
  x:=MousePos_X;
  iValueIdx:=-1;
  iValueCount:=TChart(Chart as TComponent).Series[0].count;
  if iValueCount<>0 then
  begin
        dXValue := TChart(Chart as TComponent).Series[0].XScreenToValue(X);
        if dXValue <= TChart(Chart as TComponent).Series[0].XValue[0] then
          iValueIdx := 0
        else if dXValue >= TChart(Chart as TComponent).Series[0].XValue[iValueCount-1] then
          iValueIdx := iValueCount-1
        else
        for i:=1 to iValueCount-1 do
          if (dXValue >= TChart(Chart as TComponent).Series[0].XValue[i-1]) and (dXValue <= TChart(Chart as TComponent).Series[0].XValue[i]) then
          begin
            if (dXValue-TChart(Chart as TComponent).Series[0].XValue[i-1])<(TChart(Chart as TComponent).Series[0].XValue[i]-dXValue) then
              iValueIdx := i-1
            else
              iValueIdx := i;
            break;
          end;
        dXValue := TChart(Chart as TComponent).Series[0].XValue[iValueIdx];
        iXPosition := TChart(Chart as TComponent).BottomAxis.CalcXPosValue(dXValue);
        TChart(Chart as TComponent).Repaint;
        With TChart(Chart as TComponent).Canvas do
        begin
          Pen.Width:=1;
          Pen.Style:=psSolid;
          Pen.Color:=LineColor;
          with TChart(Chart as TComponent) do
          begin
            MoveTo(iXposition,ChartRect.Top);
            LineTo(iXPosition,ChartRect.Bottom );
          end;//with TChart(Chart as TComponent) do
        end;
      end;// if iValueCount<>0 then
     result:=iValueIdx;//返回mouse所在的chart上的index
end;
//_______________________________________________________________________________
{-------------------------}
{讓程序開機時自動運行     }
{寫注冊表的run            }
{-------------------------}
procedure TFun.AutoRunByReg(FileName:string);
var
   reg:Tregistry;
   fP:string;
begin
  if FileName='' then fp:=application.Title;
   reg:=TRegistry.Create;
   reg.RootKey:=HKEY_LOCAL_MACHINE;
   if reg.OpenKey('\SOFTWARE\Microsoft\Windows\CurrentVersion\Run',true) then
   begin
      reg.WriteString(fp,application.exeName);
   end;
   reg.CloseKey;
   reg.Free;
end;
//-------------------------------------------------------------------------------
//刪除regKey===>Autorun
procedure TFun.DelAutoRunByReg(KeyName: string);
var
   reg:Tregistry;
   sKey:string;
begin
  if KeyName='' then sKey:=application.Title;
   reg:=TRegistry.Create;
   reg.RootKey:=HKEY_LOCAL_MACHINE;
   if reg.OpenKey('\SOFTWARE\Microsoft\Windows\CurrentVersion\Run',false) then
   begin
      reg.DeleteValue(sKey)
   end;
   reg.CloseKey;
   reg.Free;
end;
//______________________________________________________________________________
{------------------------}
{最小化系統所有的窗體    }
{------------------------}
procedure TFun.MinWinAll;
var 
  h:HWnd; 
begin 
  h:=application.Handle; 
  while h > 0 do 
  begin 
  if isWindowVisible(h) then 
     postmessage(h,WM_SYSCOMMAND,SC_MINIMIZE,0);
     h:=getnextwindow(h,GW_HWNDNEXT); 
  end;
end;
//______________________________________________________________________________

{---------------------}
{       關閉所有窗體  }
{---------------------}
procedure TFun.CloseWinAll;
var 
  h:HWnd; 
begin 
  h:=application.Handle;
  while h > 0 do
  begin 
    if isWindowVisible(h) and (H<>application.Handle)
                          and (H<>FindWindow('Progman', nil))
    then postmessage(h,WM_Close,0,0);
    h:=getnextwindow(h,GW_HWNDNEXT);
  end;
end;
//_______________________________________________________________________________
{----------------------}
{給窗體加個邊框        }
{----------------------}
procedure TFun.DrawWindowRect(handle: Thandle;wColor:Tcolor;PenWidth:integer);
var
  dc : hDc;
  Pen : hPen;
  OldPen : hPen;
  OldBrush : hBrush;
  WinR:TwinRect;
begin
  GetWinRect(handle,WinR);
  dc := GetWindowDC(Handle);
  Pen := CreatePen(PS_SOLID,PenWidth,wColor);
  OldPen := SelectObject(dc,Pen);
  OldBrush := SelectObject(dc, GetStockObject(NULL_BRUSH));
  Rectangle(dc, 0,0, WinR.Width, WinR.Height);
  SelectObject(dc, OldBrush);
  SelectObject(dc, OldPen);
  DeleteObject(Pen);
  ReleaseDC(Handle,0);
end;
//_______________________________________________________________________________
{----------------------------------------------------}
{         InI文件操作函數集                          }
{可利用fun1.GetAppPath('mytest.ini')得到完整的ini目錄}
{----------------------------------------------------}
{------------read Integer------------}
function TFun.ReadIniFile(const FileName, Section, Ident: string;
  Default: integer): integer;
begin
  myIniFile:=TiniFile.Create(FileName);
  result:=myIniFile.ReadInteger(Section,Ident,Default);
  myIniFile.FreeInstance;
end;
{------------read string------------}
function TFun.ReadIniFile(const FileName, Section, Ident: string;
  Default: string): string;
begin
  myIniFile:=TiniFile.Create(FileName);
  result:=myIniFile.ReadString(Section,Ident,Default);
  myIniFile.FreeInstance;
end;
{------------read Boolean------------}
function TFun.ReadIniFile(const FileName, Section, Ident: string;
  Default: Boolean): Boolean;
begin
  myIniFile:=TiniFile.Create(FileName);
  result:=myIniFile.ReadBool(Section,Ident,Default);
  myIniFile.FreeInstance;
end;
{------------read  Double------------}
function TFun.ReadIniFile(const FileName, Section, Ident: string;
  Default: Double): Double;
begin
  myIniFile:=TiniFile.Create(FileName);
  result:=myIniFile.ReadFloat(Section,Ident,Default);
  myIniFile.FreeInstance;
end;
{------------read DateTime-----------}
function TFun.ReadIniFile(const FileName, Section, Ident: string;
  Default: TdateTime): TdateTime;
begin
  myIniFile:=TiniFile.Create(FileName);
  result:=myIniFile.ReadDateTime(Section,Ident,Default);
  myIniFile.FreeInstance;
end;
//_________________________________________________________________________________
{------------Write Integer------------}
procedure TFun.WriteIniFile(const FileName, Section, Ident: string;
  Value: integer);
begin
  myIniFile:=TiniFile.Create(FileName);
  myIniFile.WriteInteger(Section,Ident,Value);
  myIniFile.FreeInstance;
end;
{------------Write String------------}
procedure TFun.WriteIniFile(const FileName, Section, Ident: string;
  Value: string);
begin

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日本网站在线观看一区二区三区| 久久久不卡影院| 亚洲国产综合91精品麻豆| 91网站视频在线观看| 亚洲乱码精品一二三四区日韩在线 | 亚洲激情五月婷婷| 一本大道久久a久久综合| 亚洲美女免费在线| 欧美伊人久久久久久久久影院| 亚洲午夜视频在线| 91精品国产色综合久久不卡蜜臀| 日本视频在线一区| 久久久精品免费网站| 成人av在线播放网址| 亚洲色欲色欲www| 91福利在线播放| 日韩av一级片| 国产亚洲女人久久久久毛片| 一本一道久久a久久精品综合蜜臀| 亚洲综合色视频| 欧美一区二区三区四区在线观看| 久久9热精品视频| 国产精品视频一二三区| 91久久国产综合久久| 久久精品国产精品亚洲红杏| 亚洲欧洲色图综合| 欧美日韩国产一区| 国产伦精品一区二区三区免费迷| 亚洲婷婷综合色高清在线| 欧美一区二区视频在线观看2020| 国产成人免费视| 午夜久久久久久久久久一区二区| 久久五月婷婷丁香社区| 色噜噜久久综合| 九九热在线视频观看这里只有精品| 中文字幕精品综合| 欧美日本不卡视频| 成人国产亚洲欧美成人综合网| 亚洲一本大道在线| 欧美激情一区二区在线| 欧美乱妇15p| 91丝袜美腿高跟国产极品老师| 老司机精品视频在线| 亚洲精品成人在线| 欧美精品一区二区三区很污很色的| 91浏览器在线视频| 激情六月婷婷久久| 亚洲成人av一区二区| 国产精品久久久久久久久久久免费看| 在线91免费看| 在线欧美日韩国产| 成人高清av在线| 精东粉嫩av免费一区二区三区| 亚洲乱码国产乱码精品精可以看 | 欧美视频精品在线| 成人免费视频网站在线观看| 麻豆精品一区二区三区| 亚洲成人先锋电影| 亚洲精品国产一区二区三区四区在线| 久久综合久久综合久久| 91精品国产欧美一区二区成人 | 国产sm精品调教视频网站| 日韩国产成人精品| 亚洲国产aⅴ天堂久久| 亚洲九九爱视频| 亚洲天堂a在线| 国产精品久久久久精k8| 国产精品视频一二三区| 欧美国产日本视频| 欧美韩日一区二区三区| 精品福利一区二区三区免费视频| 欧美一级在线免费| 884aa四虎影成人精品一区| 欧美日韩激情一区二区三区| 欧美最猛黑人xxxxx猛交| 色综合亚洲欧洲| 91免费版pro下载短视频| caoporen国产精品视频| 成人av电影在线观看| 国产精品91一区二区| 国产麻豆精品久久一二三| 国产精品主播直播| 国产a视频精品免费观看| 国产成人免费视频| av福利精品导航| 91首页免费视频| 欧美专区日韩专区| 欧美三级日韩三级国产三级| 欧美日韩精品一区视频| 91精品免费在线| 日韩精品一区二区三区在线 | 国产一区二区视频在线| 国产乱码一区二区三区| 国产很黄免费观看久久| 成人午夜视频免费看| 色网站国产精品| 欧美区一区二区三区| 欧美一卡2卡三卡4卡5免费| 久久久久久久久久美女| 成人欧美一区二区三区小说| 亚洲毛片av在线| 日韩avvvv在线播放| 捆绑调教一区二区三区| 福利一区二区在线观看| 色菇凉天天综合网| 日韩欧美在线影院| 日本一区二区三区四区在线视频| 中文字幕日本乱码精品影院| 亚洲国产综合91精品麻豆| 麻豆一区二区三| 波多野结衣欧美| 欧美日本国产视频| 国产欧美日韩三区| 亚洲综合丝袜美腿| 国模冰冰炮一区二区| 91论坛在线播放| 精品国产三级电影在线观看| 亚洲欧洲综合另类| 精品一区二区影视| 94色蜜桃网一区二区三区| 日韩三级视频在线看| 国产精品久久看| 看片网站欧美日韩| 欧美日韩国产天堂| 久久久欧美精品sm网站| 亚洲国产精品天堂| 成人精品免费视频| 91精品国产综合久久精品图片| 国产精品你懂的| 免费成人美女在线观看.| 国产不卡视频在线播放| 日韩一区二区三区免费观看| 国产精品传媒视频| 精品一二线国产| 欧美日韩一区三区四区| 国产精品女人毛片| 精品在线播放免费| 欧美性生活大片视频| 国产视频一区不卡| 毛片av一区二区| 欧美美女网站色| 一区二区三区在线视频免费| 国产乱子轮精品视频| 正在播放一区二区| 亚洲一区二区三区在线播放| 岛国精品在线观看| 久久在线免费观看| 捆绑紧缚一区二区三区视频| 欧美探花视频资源| 亚洲天堂免费在线观看视频| 国产精品影视天天线| 日韩三级高清在线| 日韩中文字幕亚洲一区二区va在线| 色琪琪一区二区三区亚洲区| 国产精品九色蝌蚪自拍| 国产成人综合视频| 亚洲精品一线二线三线| 日韩不卡一区二区三区| 欧美日韩精品系列| 亚洲综合色区另类av| 色综合网色综合| 中文字幕制服丝袜成人av| 成人a级免费电影| 国产免费成人在线视频| 久久66热re国产| 精品成人a区在线观看| 国内一区二区在线| 亚洲精品一区二区三区精华液| 全国精品久久少妇| 欧美不卡123| 精品一区二区在线免费观看| 日韩欧美成人午夜| 精品在线免费观看| 久久色成人在线| 国产成人免费视频一区| 中文字幕在线不卡一区二区三区| 99热在这里有精品免费| 亚洲欧洲色图综合| 欧美亚洲一区二区在线| 亚洲国产日韩av| 欧美一区二区精品久久911| 日韩和的一区二区| 精品久久国产字幕高潮| 国产美女在线观看一区| 欧美国产成人在线| 一本到不卡免费一区二区| 亚洲电影第三页| 中文字幕精品—区二区四季| 成人精品一区二区三区中文字幕| 国产精品天天摸av网| 色域天天综合网| 视频一区欧美日韩| 久久久91精品国产一区二区精品| 粉嫩一区二区三区性色av| 亚洲精品日韩综合观看成人91| 欧美高清精品3d| 国产成人综合自拍| 一区二区三区自拍| 日韩欧美中文字幕公布| 懂色av中文一区二区三区|