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

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

?? tntforms.pas

?? TNT Components Source
?? PAS
?? 第 1 頁 / 共 2 頁
字號:

{*****************************************************************************}
{                                                                             }
{    Tnt Delphi Unicode Controls                                              }
{      http://www.tntware.com/delphicontrols/unicode/                         }
{        Version: 2.3.0                                                       }
{                                                                             }
{    Copyright (c) 2002-2007, Troy Wolbrink (troy.wolbrink@tntware.com)       }
{                                                                             }
{*****************************************************************************}

unit TntForms;

{$INCLUDE TntCompilers.inc}

interface

uses
  Classes, Windows, Messages, Controls, Forms, TntControls;

type
{TNT-WARN TScrollBox}
  TTntScrollBox = class(TScrollBox{TNT-ALLOW TScrollBox})
  private
    FWMSizeCallCount: Integer;
    function IsHintStored: Boolean;
    function GetHint: WideString;
    procedure SetHint(const Value: WideString);
    procedure WMSize(var Message: TWMSize); message WM_SIZE;
  protected
    procedure CreateWindowHandle(const Params: TCreateParams); override;
    procedure DefineProperties(Filer: TFiler); override;
    function GetActionLinkClass: TControlActionLinkClass; override;
    procedure ActionChange(Sender: TObject; CheckDefaults: Boolean); override;
  published
    property Hint: WideString read GetHint write SetHint stored IsHintStored;
  end;

{TNT-WARN TCustomFrame}
  TTntCustomFrame = class(TCustomFrame{TNT-ALLOW TCustomFrame})
  private
    function IsHintStored: Boolean;
    function GetHint: WideString;
    procedure SetHint(const Value: WideString);
  protected
    procedure CreateWindowHandle(const Params: TCreateParams); override;
    procedure DefineProperties(Filer: TFiler); override;
    function GetActionLinkClass: TControlActionLinkClass; override;
    procedure ActionChange(Sender: TObject; CheckDefaults: Boolean); override;
  published
    property Hint: WideString read GetHint write SetHint stored IsHintStored;
  end;

{TNT-WARN TFrame}
  TTntFrame = class(TTntCustomFrame)
  published
    property Align;
    property Anchors;
    property AutoScroll;
    property AutoSize;
    property BiDiMode;
    property Constraints;
    property DockSite;
    property DragCursor;
    property DragKind;
    property DragMode;
    property Enabled;
    property Color nodefault;
    property Ctl3D;
    property Font;
    {$IFDEF COMPILER_10_UP}
    property Padding;
    {$ENDIF}
    {$IFDEF COMPILER_7_UP}
    property ParentBackground default True;
    {$ENDIF}
    property ParentBiDiMode;
    property ParentColor;
    property ParentCtl3D;
    property ParentFont;
    property ParentShowHint;
    property PopupMenu;
    property ShowHint;
    property TabOrder;
    property TabStop;
    property Visible;
    {$IFDEF COMPILER_9_UP}
    property OnAlignInsertBefore;
    property OnAlignPosition;
    {$ENDIF}
    property OnCanResize;
    property OnClick;
    property OnConstrainedResize;
    property OnContextPopup;
    property OnDblClick;
    property OnDockDrop;
    property OnDockOver;
    property OnDragDrop;
    property OnDragOver;
    property OnEndDock;
    property OnEndDrag;
    property OnEnter;
    property OnExit;
    property OnGetSiteInfo;
    {$IFDEF COMPILER_9_UP}
    property OnMouseActivate;
    {$ENDIF}
    property OnMouseDown;
    {$IFDEF COMPILER_10_UP}
    property OnMouseEnter;
    property OnMouseLeave;
    {$ENDIF}
    property OnMouseMove;
    property OnMouseUp;
    property OnMouseWheel;
    property OnMouseWheelDown;
    property OnMouseWheelUp;
    property OnResize;
    property OnStartDock;
    property OnStartDrag;
    property OnUnDock;
  end;

{TNT-WARN TForm}
  TTntForm = class(TForm{TNT-ALLOW TForm})
  private
    function GetCaption: TWideCaption;
    procedure SetCaption(const Value: TWideCaption);
    function GetHint: WideString;
    procedure SetHint(const Value: WideString);
    function IsCaptionStored: Boolean;
    function IsHintStored: Boolean;
    procedure WMMenuSelect(var Message: TWMMenuSelect); message WM_MENUSELECT;
    procedure CMBiDiModeChanged(var Message: TMessage); message CM_BIDIMODECHANGED;
    procedure WMWindowPosChanging(var Message: TMessage); message WM_WINDOWPOSCHANGING;
  protected
    procedure UpdateActions; override;
    procedure CreateWindowHandle(const Params: TCreateParams); override;
    procedure DestroyWindowHandle; override;
    procedure DefineProperties(Filer: TFiler); override;
    function GetActionLinkClass: TControlActionLinkClass; override;
    procedure ActionChange(Sender: TObject; CheckDefaults: Boolean); override;
    function CreateDockManager: IDockManager; override;
  public
    constructor Create(AOwner: TComponent); override;
    procedure DefaultHandler(var Message); override;
  published
    property Caption: TWideCaption read GetCaption write SetCaption stored IsCaptionStored;
    property Hint: WideString read GetHint write SetHint stored IsHintStored;
  end;

  TTntApplication = class(TComponent)
  private
    FMainFormChecked: Boolean;
    FHint: WideString;
    FTntAppIdleEventControl: TControl;
    FSettingChangeTime: Cardinal;
    FTitle: WideString;
    function GetHint: WideString;
    procedure SetAnsiAppHint(const Value: AnsiString);
    procedure SetHint(const Value: WideString);
    function GetExeName: WideString;
    function IsDlgMsg(var Msg: TMsg): Boolean;
    procedure DoIdle;
    function GetTitle: WideString;
    procedure SetTitle(const Value: WideString);
    procedure SetAnsiApplicationTitle(const Value: AnsiString);
    function ApplicationMouseControlHint: WideString;
  protected
    function WndProc(var Message: TMessage): Boolean;
    function ProcessMessage(var Msg: TMsg): Boolean;
  public
    constructor Create(AOwner: TComponent); override;
    destructor Destroy; override;
    property Hint: WideString read GetHint write SetHint;
    property ExeName: WideString read GetExeName;
    property SettingChangeTime: Cardinal read FSettingChangeTime;
    property Title: WideString read GetTitle write SetTitle;
  end;

{TNT-WARN IsAccel}
function IsWideCharAccel(CharCode: Word; const Caption: WideString): Boolean;

{TNT-WARN PeekMessage}
{TNT-WARN PeekMessageA}
{TNT-WARN PeekMessageW}
procedure EnableManualPeekMessageWithRemove;
procedure DisableManualPeekMessageWithRemove;

type
  TFormProc = procedure (Form: TForm{TNT-ALLOW TForm});

var
  TntApplication: TTntApplication;

procedure InitTntEnvironment;
  
implementation

uses
  SysUtils, Consts, RTLConsts, Menus, FlatSB, StdActns,
  Graphics, TntSystem, TntSysUtils, TntMenus, TntActnList, TntStdActns, TntClasses;

function IsWideCharAccel(CharCode: Word; const Caption: WideString): Boolean;
var
  W: WideChar;
begin
  W := KeyUnicode(CharCode);
  Result := WideSameText(W, WideGetHotKey(Caption));
end;

{ TTntScrollBox }

procedure TTntScrollBox.CreateWindowHandle(const Params: TCreateParams);
begin
  CreateUnicodeHandle(Self, Params, '');
end;

procedure TTntScrollBox.DefineProperties(Filer: TFiler);
begin
  inherited;
  TntPersistent_AfterInherited_DefineProperties(Filer, Self);
end;

function TTntScrollBox.IsHintStored: Boolean;
begin
  Result := TntControl_IsHintStored(Self);
end;

function TTntScrollBox.GetHint: WideString;
begin
  Result := TntControl_GetHint(Self);
end;

procedure TTntScrollBox.SetHint(const Value: WideString);
begin
  TntControl_SetHint(Self, Value);
end;

procedure TTntScrollBox.ActionChange(Sender: TObject; CheckDefaults: Boolean);
begin
  TntControl_BeforeInherited_ActionChange(Self, Sender, CheckDefaults);
  inherited;
end;

function TTntScrollBox.GetActionLinkClass: TControlActionLinkClass;
begin
  Result := TntControl_GetActionLinkClass(Self, inherited GetActionLinkClass);
end;

procedure TTntScrollBox.WMSize(var Message: TWMSize);
begin
  Inc(FWMSizeCallCount);
  try
    if FWMSizeCallCount < 32 then { Infinite recursion was encountered on Win 9x. }
      inherited;
  finally
    Dec(FWMSizeCallCount);
  end;
end;

{ TTntCustomFrame }

procedure TTntCustomFrame.CreateWindowHandle(const Params: TCreateParams);
begin
  CreateUnicodeHandle(Self, Params, '');
end;

procedure TTntCustomFrame.DefineProperties(Filer: TFiler);
begin
  inherited;
  TntPersistent_AfterInherited_DefineProperties(Filer, Self);
end;

function TTntCustomFrame.IsHintStored: Boolean;
begin
  Result := TntControl_IsHintStored(Self);
end;

function TTntCustomFrame.GetHint: WideString;
begin
  Result := TntControl_GetHint(Self);
end;

procedure TTntCustomFrame.SetHint(const Value: WideString);
begin
  TntControl_SetHint(Self, Value);
end;

procedure TTntCustomFrame.ActionChange(Sender: TObject; CheckDefaults: Boolean);
begin
  TntControl_BeforeInherited_ActionChange(Self, Sender, CheckDefaults);
  inherited;
end;

function TTntCustomFrame.GetActionLinkClass: TControlActionLinkClass;
begin
  Result := TntControl_GetActionLinkClass(Self, inherited GetActionLinkClass);
end;

{ TTntForm }

constructor TTntForm.Create(AOwner: TComponent);
begin
  // standard construction technique (look at TForm.Create)
  GlobalNameSpace.BeginWrite;
  try
    CreateNew(AOwner);
    if (ClassType <> TTntForm) and not (csDesigning in ComponentState) then
    begin
      Include(FFormState, fsCreating);
      try
        if not InitInheritedComponent(Self, TTntForm) then
          raise EResNotFound.CreateFmt(SResNotFound, [ClassName]);
      finally
        Exclude(FFormState, fsCreating);
      end;
      if OldCreateOrder then DoCreate;
    end;
  finally
    GlobalNameSpace.EndWrite;
  end;
end;

procedure TTntForm.CreateWindowHandle(const Params: TCreateParams);
var
  NewParams: TCreateParams;
  WideWinClassName: WideString;
begin
  if (not Win32PlatformIsUnicode) then
    inherited
  else if (FormStyle = fsMDIChild) and not (csDesigning in ComponentState) then
  begin
    if (Application.MainForm = nil) or
      (Application.MainForm.ClientHandle = 0) then
        raise EInvalidOperation.Create(SNoMDIForm);
    RegisterUnicodeClass(Params, WideWinClassName);
    DefWndProc := @DefMDIChildProcW;
    WindowHandle := CreateMDIWindowW(PWideChar(WideWinClassName),
      nil, Params.style, Params.X, Params.Y, Params.Width, Params.Height,
        Application.MainForm.ClientHandle, hInstance, Longint(Params.Param));
    if WindowHandle = 0 then
      RaiseLastOSError;
    SubClassUnicodeControl(Self, Params.Caption);
    Include(FFormState, fsCreatedMDIChild);
  end else
  begin
    NewParams := Params;
    NewParams.ExStyle := NewParams.ExStyle and not WS_EX_LAYERED;
    CreateUnicodeHandle(Self, NewParams, '');
    Exclude(FFormState, fsCreatedMDIChild);
  end;
  if AlphaBlend then begin
    // toggle AlphaBlend to force update
    AlphaBlend := False;
    AlphaBlend := True;
  end else if TransparentColor then begin
    // toggle TransparentColor to force update
    TransparentColor := False;
    TransparentColor := True;
  end;
end;

procedure TTntForm.DestroyWindowHandle;
begin
  if Win32PlatformIsUnicode then
    UninitializeFlatSB(Handle); { Bug in VCL: Without this there might be a resource leak. }
  inherited;
end;

procedure TTntForm.DefineProperties(Filer: TFiler);
begin
  inherited;
  TntPersistent_AfterInherited_DefineProperties(Filer, Self);
end;

procedure TTntForm.DefaultHandler(var Message);
begin
  if (ClientHandle <> 0)
  and (Win32PlatformIsUnicode) then begin
    with TMessage(Message) do begin
      if (Msg = WM_SIZE) then
        Result := DefWindowProcW(Handle, Msg, wParam, lParam)
      else
        Result := DefFrameProcW(Handle, ClientHandle, Msg, wParam, lParam);
      if (Msg = WM_DESTROY) then
         Perform(TNT_WM_DESTROY, 0, 0); { This ensures that the control is Unsubclassed. }
    end;
  end else
    inherited DefaultHandler(Message);
end;

function TTntForm.IsCaptionStored: Boolean;
begin
  Result := TntControl_IsCaptionStored(Self);
end;

function TTntForm.GetCaption: TWideCaption;
begin
  Result := TntControl_GetText(Self)
end;

procedure TTntForm.SetCaption(const Value: TWideCaption);
begin
  TntControl_SetText(Self, Value)
end;

function TTntForm.IsHintStored: Boolean;
begin
  Result := TntControl_IsHintStored(Self);
end;

function TTntForm.GetHint: WideString;
begin
  Result := TntControl_GetHint(Self)
end;

procedure TTntForm.SetHint(const Value: WideString);
begin
  TntControl_SetHint(Self, Value);
end;

procedure TTntForm.ActionChange(Sender: TObject; CheckDefaults: Boolean);
begin
  TntControl_BeforeInherited_ActionChange(Self, Sender, CheckDefaults);
  inherited;
end;

function TTntForm.GetActionLinkClass: TControlActionLinkClass;
begin
  Result := TntControl_GetActionLinkClass(Self, inherited GetActionLinkClass);
end;

procedure TTntForm.WMMenuSelect(var Message: TWMMenuSelect);
var
  MenuItem: TMenuItem{TNT-ALLOW TMenuItem};
  ID: Integer;

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
色婷婷av一区二区三区大白胸 | 欧美一区二区女人| 一区二区三区欧美在线观看| 97精品久久久久中文字幕| 国产精品久久久一区麻豆最新章节| 国产suv一区二区三区88区| 中文字幕不卡三区| 91麻豆精东视频| 午夜精品在线看| 精品捆绑美女sm三区| 国产成人午夜电影网| 国产精品电影院| 欧美又粗又大又爽| 日本中文字幕一区二区视频| 精品电影一区二区| 成人午夜私人影院| 亚洲高清不卡在线观看| 日韩美女天天操| eeuss鲁一区二区三区| 亚洲国产wwwccc36天堂| 精品国产乱码久久久久久免费 | 国内精品嫩模私拍在线| 中文字幕乱码一区二区免费| 91女人视频在线观看| 亚洲二区在线视频| 26uuu精品一区二区在线观看| 成人黄色av电影| 青青国产91久久久久久| 国产精品九色蝌蚪自拍| 欧美一区二区久久| av亚洲精华国产精华| 欧美a级一区二区| 中文字幕日韩欧美一区二区三区| 欧美视频三区在线播放| 国产盗摄精品一区二区三区在线 | 欧美日韩在线播放三区| 精久久久久久久久久久| 日韩理论片网站| 日韩午夜中文字幕| 91高清视频在线| 国产剧情一区二区| 午夜精品久久久久影视| 欧美激情一区二区三区不卡 | 亚洲欧美激情小说另类| 色综合久久久久久久| 日本成人在线不卡视频| 中文字幕中文乱码欧美一区二区| 欧美日韩中字一区| 99久久99久久久精品齐齐| 极品少妇xxxx精品少妇| 亚洲一区二区三区自拍| 国产精品成人免费| 久久久99精品免费观看不卡| 91精品国产综合久久福利| 91福利精品视频| av高清久久久| 国产98色在线|日韩| 裸体一区二区三区| 亚洲国产一区二区三区| 亚洲欧洲综合另类| 国产精品女同一区二区三区| 欧美精品一区二区精品网| 欧美一卡二卡三卡| 欧美日韩精品专区| 丝袜亚洲另类欧美| 精品免费国产一区二区三区四区| 欧美日韩精品一区二区| 99久精品国产| av电影天堂一区二区在线观看| 国产在线播放一区二区三区| 日av在线不卡| 免费成人结看片| 日韩在线一区二区| 三级影片在线观看欧美日韩一区二区| 一级女性全黄久久生活片免费| 亚洲天堂福利av| 亚洲女厕所小便bbb| 亚洲丝袜自拍清纯另类| 中文字幕亚洲欧美在线不卡| 国产欧美精品日韩区二区麻豆天美| 精品国产欧美一区二区| 精品欧美一区二区久久| 欧美第一区第二区| 久久久久久综合| 国产视频一区二区三区在线观看| 久久在线免费观看| 久久精品视频在线看| 国产精品无圣光一区二区| 国产精品免费视频观看| 国产精品不卡一区| 日韩精品电影在线| 欧美三级电影网| 欧美日韩视频专区在线播放| 欧美性感一类影片在线播放| 欧美日韩成人一区| 日韩一级完整毛片| 久久亚洲精华国产精华液| 国产欧美精品一区二区色综合朱莉 | 中文字幕精品一区二区三区精品| 久久久久99精品一区| 亚洲丝袜精品丝袜在线| 亚洲福中文字幕伊人影院| 看片的网站亚洲| 成人黄色777网| 欧美日韩视频一区二区| 久久综合色综合88| 中文字幕在线观看不卡| 亚洲成av人片一区二区三区 | 国产福利不卡视频| 色综合久久久久| 日韩一级高清毛片| 中文一区二区在线观看| 一区二区三区免费| 麻豆久久久久久久| 色婷婷综合久久久久中文| 日韩三级免费观看| 亚洲色图19p| 精品一区二区三区在线播放视频| 成人99免费视频| 日韩一级片网站| 亚洲激情一二三区| 国产精品亚洲一区二区三区在线| 91高清视频在线| 国产欧美中文在线| 日韩和的一区二区| bt欧美亚洲午夜电影天堂| 欧美精三区欧美精三区| 中文字幕免费观看一区| 日本亚洲天堂网| 91官网在线观看| 久久精品一区二区三区不卡牛牛| 亚洲一区二区三区国产| 丰满放荡岳乱妇91ww| 欧美乱熟臀69xxxxxx| 中文字幕一区视频| 国产乱国产乱300精品| 在线不卡欧美精品一区二区三区| 中文子幕无线码一区tr| 狠狠狠色丁香婷婷综合激情| 欧美日韩色一区| 亚洲欧美一区二区三区国产精品| 国产成人在线网站| 日韩一区二区在线观看视频播放| 一区二区视频在线看| 成人av免费在线观看| 久久色.com| 裸体健美xxxx欧美裸体表演| 欧美美女喷水视频| 午夜精品福利一区二区三区蜜桃| 91麻豆免费视频| 国产精品乱人伦| 国产成人综合网站| 国产亚洲污的网站| 激情五月播播久久久精品| 91精品福利在线一区二区三区| 亚洲国产美国国产综合一区二区| 99r精品视频| 亚洲少妇屁股交4| av激情综合网| 亚洲美女在线国产| 99re视频精品| 最新热久久免费视频| 不卡av电影在线播放| 国产精品久久久久久久久快鸭 | 日韩精品在线看片z| 天天操天天综合网| 91国产成人在线| 亚洲图片另类小说| 成人精品gif动图一区| 国产日韩欧美精品综合| 国产一区二区三区精品视频| 日韩一级完整毛片| 久久机这里只有精品| 欧美一级久久久久久久大片| 日日摸夜夜添夜夜添精品视频| 欧美色视频在线观看| 亚洲成人中文在线| 91精品综合久久久久久| 裸体健美xxxx欧美裸体表演| 久久综合久久久久88| 国产精品一区二区你懂的| 久久九九久久九九| av中文字幕亚洲| 亚洲一区视频在线观看视频| 欧美猛男男办公室激情| 日韩福利电影在线观看| 久久久亚洲午夜电影| 成人综合婷婷国产精品久久免费| 亚洲视频一二区| 欧美日韩国产电影| 久久99国产精品免费网站| 国产嫩草影院久久久久| 在线欧美日韩国产| 国产成人av自拍| 亚洲免费av网站| 欧美优质美女网站| 热久久久久久久| 久久五月婷婷丁香社区| 不卡的av电影| 亚洲r级在线视频|