Browse Source

--- Merging r24806 into '.':
U rtl/win/wininc/defines.inc
--- Merging r24829 into '.':
U rtl/inc/systemh.inc
--- Merging r24920 into '.':
U packages/winunits-base/src/activex.pp

# revisions: 24806,24829,24920
r24806 | marco | 2013-06-05 15:23:10 +0200 (Wed, 05 Jun 2013) | 2 lines
Changed paths:
M /trunk/rtl/win/wininc/defines.inc

* add INVALID_FILE_SIZE mentioned on Lazarus list.
r24829 | marco | 2013-06-09 13:21:51 +0200 (Sun, 09 Jun 2013) | 2 lines
Changed paths:
M /trunk/rtl/inc/systemh.inc

* added pointer types for int8..int32 types after request on community site.
r24920 | marco | 2013-06-21 12:23:13 +0200 (Fri, 21 Jun 2013) | 1 line
Changed paths:
M /trunk/packages/winunits-base/src/activex.pp

* Patch from Ocean, Mantis #24625 adding ISimpleFrameSite,IFont,IFontDisp,IPictureDisp

git-svn-id: branches/fixes_2_6@24982 -

marco 12 years ago
parent
commit
5a7b0f23d0
3 changed files with 87 additions and 0 deletions
  1. 75 0
      packages/winunits-base/src/activex.pp
  2. 11 0
      rtl/inc/systemh.inc
  3. 1 0
      rtl/win/wininc/defines.inc

+ 75 - 0
packages/winunits-base/src/activex.pp

@@ -3540,6 +3540,81 @@ type
    function GetPages(out pPages:tagCAUUID):HRESULT;stdcall;
   end;
 
+// ISimpleFrameSite :
+
+ ISimpleFrameSite = interface(IUnknown)
+   ['{742B0E01-14E6-101B-914E-00AA00300CAB}']
+    // PreMessageFilter :
+   function PreMessageFilter(hwnd:wireHWND;msg:UInt;wp:UINT_PTR;lp:LONG_PTR;out plResult:LONG_PTR;out pdwCookie:LongWord):HRESULT;stdcall;
+    // PostMessageFilter :
+   function PostMessageFilter(hwnd:wireHWND;msg:UInt;wp:UINT_PTR;lp:LONG_PTR;out plResult:LONG_PTR;dwCookie:LongWord):HRESULT;stdcall;
+  end;
+
+// IFont :
+
+ IFont = interface(IUnknown)
+   ['{BEF6E002-A874-101A-8BBA-00AA00300CAB}']
+    // get_Name :
+   function get_Name(out pName:WideString):HRESULT;stdcall;
+    // put_Name :
+   function put_Name(name:WideString):HRESULT;stdcall;
+    // get_Size :
+   function get_Size(out pSize:Currency):HRESULT;stdcall;
+    // put_Size :
+   function put_Size(size:Currency):HRESULT;stdcall;
+    // get_Bold :
+   function get_Bold(out pBold:Integer):HRESULT;stdcall;
+    // put_Bold :
+   function put_Bold(bold:Integer):HRESULT;stdcall;
+    // get_Italic :
+   function get_Italic(out pItalic:Integer):HRESULT;stdcall;
+    // put_Italic :
+   function put_Italic(italic:Integer):HRESULT;stdcall;
+    // get_Underline :
+   function get_Underline(out pUnderline:Integer):HRESULT;stdcall;
+    // put_Underline :
+   function put_Underline(underline:Integer):HRESULT;stdcall;
+    // get_Strikethrough :
+   function get_Strikethrough(out pStrikethrough:Integer):HRESULT;stdcall;
+    // put_Strikethrough :
+   function put_Strikethrough(strikethrough:Integer):HRESULT;stdcall;
+    // get_Weight :
+   function get_Weight(out pWeight:Smallint):HRESULT;stdcall;
+    // put_Weight :
+   function put_Weight(weight:Smallint):HRESULT;stdcall;
+    // get_Charset :
+   function get_Charset(out pCharset:Smallint):HRESULT;stdcall;
+    // put_Charset :
+   function put_Charset(charset:Smallint):HRESULT;stdcall;
+    // get_hFont :
+   function get_hFont(out phFont:wireHFONT):HRESULT;stdcall;
+    // Clone :
+   function Clone(out ppFont:IFont):HRESULT;stdcall;
+    // IsEqual :
+   function IsEqual(pFontOther:IFont):HRESULT;stdcall;
+    // SetRatio :
+   function SetRatio(cyLogical:Integer;cyHimetric:Integer):HRESULT;stdcall;
+    // QueryTextMetrics :
+   function QueryTextMetrics(out pTM:tagTEXTMETRICW):HRESULT;stdcall;
+    // AddRefHfont :
+   function AddRefHfont(hFont:wireHFONT):HRESULT;stdcall;
+    // ReleaseHfont :
+   function ReleaseHfont(hFont:wireHFONT):HRESULT;stdcall;
+    // SetHdc :
+   function SetHdc(hDC:wireHDC):HRESULT;stdcall;
+  end;
+
+// IFontDisp :
+
+ IFontDisp = interface(IDispatch)
+   ['{BEF6E003-A874-101A-8BBA-00AA00300CAB}']
+  end;
+
+// IPictureDisp :
+
+ IPictureDisp = interface(IDispatch)
+   ['{7BF80981-BF32-101A-8BBB-00AA00300CAB}']
+  end;
 
 { ******************************************************************************************************************
                                                           stuff from objbase.h

+ 11 - 0
rtl/inc/systemh.inc

@@ -347,6 +347,17 @@ Type
   PWordBool           = ^WordBool;
   PLongBool           = ^LongBool;
 
+  PNativeInt 	      = PPtrInt;
+  PNativeUInt	      = PPtrUint;
+  pInt8   	      = PShortInt;
+  pInt16  	      = PSmallint;
+  pInt32  	      = PLongint;
+  PIntPtr 	      = PPtrInt;
+  pUInt8  	      = PByte;
+  pUInt16 	      = PWord;
+  pUInt32 	      = PDWord;
+  PUintPtr	      = PPtrUInt;
+
   PShortString        = ^ShortString;
   PAnsiString         = ^AnsiString;
 

+ 1 - 0
rtl/win/wininc/defines.inc

@@ -1705,6 +1705,7 @@
 
 
      INVALID_HANDLE_VALUE = HANDLE(-1);
+     INVALID_FILE_SIZE    = DWORD(-1);
 
   { GetStockObject  }