Current News
Archived News
Search News
Discussion Forum


Old Forum
Install Programs More Downloads...
Troubleshooting
Source Code
Format Specs.
Misc. Information
Non-SF Stuff
Links




index 1f6b6f1..1df2086 100644 (file)
@@ -1,7 +1,8 @@
 Attribute VB_Name = "GrpApi"\r
 Option Explicit\r
 \r
-'  ShadowFlare GRP Library. (c) ShadowFlare Software 2002-2006\r
+'  ShadowFlare GRP Library. (c) ShadowFlare Software 2002-2008\r
+'  License information for this code is in license.txt\r
 \r
 '  Any comments or suggestions are accepted at blakflare@hotmail.com (ShadowFlare)\r
 \r
@@ -40,6 +41,7 @@ Declare Function LoadGrp Lib "Grpapi.dll" (ByVal lpFileName As String) As Long
 Declare Function DestroyGrp Lib "Grpapi.dll" (ByVal hGrp As Long) As Boolean\r
 Declare Function DrawGrp Lib "Grpapi.dll" (ByVal hGrp As Long, ByVal hdcDest As Long, ByVal nXDest As Long, ByVal nYDest As Long, ByVal nFrame As Integer, dwPalette As Long, ByVal dwFlags As Long, ByVal dwAlpha As Long) As Boolean\r
 Declare Function GetGrpInfo Lib "Grpapi.dll" (ByVal hGrp As Long, GrpInfo As GRPHEADER) As Boolean\r
+Declare Function GetGrpFrameInfo Lib "Grpapi.dll" (ByVal hGrp As Long, ByVal nFrame As Integer, ByRef nLeft As Long, ByRef nTop As Long, ByRef nWidth As Long, ByRef nHeight As Long) As Boolean\r
 \r
 Declare Function GetDC Lib "User32.dll" (ByVal hWnd As Long) As Long\r
 Declare Function ReleaseDC Lib "User32.dll" (ByVal hWnd As Long, ByVal hDC As Long) As Long\r
@@ -80,18 +82,18 @@ Declare Sub CopyMemory Lib "Kernel32.dll" _
 '\r
 ' The functions must be in this form:\r
 '\r
-' Function GetPixelProc (ByRef value As any_type, X As Long, Y As Long) As Long\r
-' Sub SetPixelProc (ByRef value As any_type, X As Long, Y As Long, clrColor As Long)\r
+' Function GetPixelProc (ByRef value As any_type, ByVal X As Long, ByVal Y As Long) As Long\r
+' Sub SetPixelProc (ByRef value As any_type, ByVal X As Long, ByVal Y As Long, ByVal clrColor As Long)\r
 '\r
 ' or\r
 '\r
-' Function GetPixelProc (ByVal value As any_type, X As Long, Y As Long) As Long\r
-' Sub SetPixelProc (ByVal value As any_type, X As Long, Y As Long, clrColor As Long)\r
+' Function GetPixelProc (ByVal value As any_type, ByVal X As Long, ByVal Y As Long) As Long\r
+' Sub SetPixelProc (ByVal value As any_type, ByVal X As Long, ByVal Y As Long, ByVal clrColor As Long)\r
 '\r
-' Replace "any_type" with whatever type you want.  This parameter gets the data from\r
-' DrawGrp's hdcDest parameter.  You can either pass a number to DrawGrp and use the\r
-' "ByVal" versions of the above functions, or you can use AddressOf to get a reference\r
-' to a variable and use it for the "ByRef" versions.\r
+' Replace "any_type" with whatever type you want (but must be 4 bytes long if ByVal).\r
+' This parameter gets the data from DrawGrp's hdcDest parameter.  You can either pass\r
+' a number to DrawGrp and use the "ByVal" versions of the above functions, or you can\r
+' use AddressOf to get a reference to a variable and use it for the "ByRef" versions.\r
 ' GetPixelProc should return an RGB color value.\r
 Declare Sub SetFunctionGetPixel Lib "Grpapi.dll" (lpGetPixelProc As Long)\r
 Declare Sub SetFunctionSetPixel Lib "Grpapi.dll" (lpSetPixelProc As Long)\r