Browse Source

* fixed more windows types

git-svn-id: trunk@7791 -
florian 18 years ago
parent
commit
5645a1380c
3 changed files with 9 additions and 19 deletions
  1. 4 12
      packages/base/winunits/commctrl.pp
  2. 3 7
      packages/base/winunits/shellapi.pp
  3. 2 0
      rtl/win/wininc/base.inc

+ 4 - 12
packages/base/winunits/commctrl.pp

@@ -43,21 +43,10 @@ Unit CommCtrl;
 Interface
 
 {$Mode ObjFPC}
-Uses Windows,ActiveX;
+Uses Windows,CTypes,ActiveX;
 
 // --------------------
 
-TYPE CINT = Longint;
-     CUINT= CARDINAL;
-
-     DWORD_PTR   = ^DWORD;
-     PDWORD_PTR  = ^DWORD_PTR;
-     ULONG_PTR   = ^ULONG;
-     INT_PTR     = ^CINT;
-     UINT_PTR    = ^UINT;
-
-
-
 // --------------------
 CONST CommCtrlDLL = 'commctrl.dll';
 
@@ -2361,6 +2350,7 @@ CONST
          RB_SETBARINFO                  = (WM_USER +  4);
 {$ifdef IE4plus}
          RB_GETBANDINFO                 = (WM_USER +  5);
+         RB_GETBANDINFO_PRE_IE4         = (WM_USER +  5);
 {$ENDIF}
          RB_SETBANDINFOA                = (WM_USER +  6);
          RB_SETPARENT                   = (WM_USER +  7);
@@ -2580,6 +2570,8 @@ TYPE
          LPRBHITTESTINFO      = ^_RB_HITTESTINFO;
          TRB_HITTESTINFO      = _RB_HITTESTINFO;
          PRB_HITTESTINFO      = ^_RB_HITTESTINFO;
+         PRBHitTestInfo       = PRB_HITTESTINFO;
+         TRBHitTestInfo       = TRB_HITTESTINFO;
 
 
 {$ENDIF}      // _WIN32_IE >= 0x0400

+ 3 - 7
packages/base/winunits/shellapi.pp

@@ -44,13 +44,9 @@ Uses Windows;
     shellapi.h -  SHELL.DLL functions, types, and definitions
     Copyright (c) Microsoft Corporation. All rights reserved.             }
 
-Type   HDROP    = THandle;
-       UINT_PTR = ^UINT;
-       DWORD_PTR= ^DWORD;
-       pHICON   = ^HICON;
-       pBool    = ^BOOL;
-
-
+  Type   
+     HDROP    = THandle;
+     PHIcon   = ^HIcon;
 
      STARTUPINFOW = record  // a guess. Omission should get fixed in Windows.
           cb : DWORD;

+ 2 - 0
rtl/win/wininc/base.inc

@@ -82,6 +82,8 @@
      UINT_PTR = PtrUInt;
      LONG_PTR = PtrInt;
      ULONG_PTR = PtrUInt;
+     DWORD_PTR   = ULONG_PTR;
+     PDWORD_PTR  = ^DWORD_PTR;
 
      DWORDLONG  = qword;  { was unsigned long  }
      PDWORDLONG = ^DWORDLONG;