⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 contentmenu_tlb.pas

📁 这是一个DELPHI7应用案例开发篇有配套程序种子光盘
💻 PAS
字号:
unit ContentMenu_TLB;

// ************************************************************************ //
// WARNING                                                                    
// -------                                                                    
// The types declared in this file were generated from data read from a       
// Type Library. If this type library is explicitly or indirectly (via        
// another type library referring to this type library) re-imported, or the   
// 'Refresh' command of the Type Library Editor activated while editing the   
// Type Library, the contents of this file will be regenerated and all        
// manual modifications will be lost.                                         
// ************************************************************************ //

// PASTLWTR : 1.2
// File generated on 2003-6-8 16:54:28 from Type Library described below.

// ************************************************************************  //
// Type Lib: C:\Samples\案例\ContextMenu\ContentMenu.tlb (1)
// LIBID: {B7D01786-4399-4D58-9FD4-71B508F8683E}
// LCID: 0
// Helpfile: 
// HelpString: ContentMenu Library
// DepndLst: 
//   (1) v2.0 stdole, (C:\WINDOWS\System32\stdole2.tlb)
//   (2) v4.0 StdVCL, (C:\WINDOWS\System32\stdvcl40.dll)
// ************************************************************************ //
{$TYPEDADDRESS OFF} // Unit must be compiled without type-checked pointers. 
{$WARN SYMBOL_PLATFORM OFF}
{$WRITEABLECONST ON}
{$VARPROPSETTER ON}
interface

uses Windows, ActiveX, Classes, Graphics, StdVCL, Variants;
  

// *********************************************************************//
// GUIDS declared in the TypeLibrary. Following prefixes are used:        
//   Type Libraries     : LIBID_xxxx                                      
//   CoClasses          : CLASS_xxxx                                      
//   DISPInterfaces     : DIID_xxxx                                       
//   Non-DISP interfaces: IID_xxxx                                        
// *********************************************************************//
const
  // TypeLibrary Major and minor versions
  ContentMenuMajorVersion = 1;
  ContentMenuMinorVersion = 0;

  LIBID_ContentMenu: TGUID = '{B7D01786-4399-4D58-9FD4-71B508F8683E}';

  IID_IDFMContextMenu: TGUID = '{9C69D04B-EB4C-4993-A604-143BE03D3ED9}';
  CLASS_DFMContextMenu: TGUID = '{38FBB164-D822-45BE-8A2E-F0DB80873279}';
type

// *********************************************************************//
// Forward declaration of types defined in TypeLibrary                    
// *********************************************************************//
  IDFMContextMenu = interface;
  IDFMContextMenuDisp = dispinterface;

// *********************************************************************//
// Declaration of CoClasses defined in Type Library                       
// (NOTE: Here we map each CoClass to its Default Interface)              
// *********************************************************************//
  DFMContextMenu = IDFMContextMenu;


// *********************************************************************//
// Interface: IDFMContextMenu
// Flags:     (4416) Dual OleAutomation Dispatchable
// GUID:      {9C69D04B-EB4C-4993-A604-143BE03D3ED9}
// *********************************************************************//
  IDFMContextMenu = interface(IDispatch)
    ['{9C69D04B-EB4C-4993-A604-143BE03D3ED9}']
  end;

// *********************************************************************//
// DispIntf:  IDFMContextMenuDisp
// Flags:     (4416) Dual OleAutomation Dispatchable
// GUID:      {9C69D04B-EB4C-4993-A604-143BE03D3ED9}
// *********************************************************************//
  IDFMContextMenuDisp = dispinterface
    ['{9C69D04B-EB4C-4993-A604-143BE03D3ED9}']
  end;

// *********************************************************************//
// The Class CoDFMContextMenu provides a Create and CreateRemote method to          
// create instances of the default interface IDFMContextMenu exposed by              
// the CoClass DFMContextMenu. The functions are intended to be used by             
// clients wishing to automate the CoClass objects exposed by the         
// server of this typelibrary.                                            
// *********************************************************************//
  CoDFMContextMenu = class
    class function Create: IDFMContextMenu;
    class function CreateRemote(const MachineName: string): IDFMContextMenu;
  end;

implementation

uses ComObj;

class function CoDFMContextMenu.Create: IDFMContextMenu;
begin
  Result := CreateComObject(CLASS_DFMContextMenu) as IDFMContextMenu;
end;

class function CoDFMContextMenu.CreateRemote(const MachineName: string): IDFMContextMenu;
begin
  Result := CreateRemoteComObject(MachineName, CLASS_DFMContextMenu) as IDFMContextMenu;
end;

end.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -