[prev in list] [next in list] [prev in thread] [next in thread] 

List:       cygwin-patches
Subject:    [w32api PATCH] Add Get/SetClassLongPtr API
From:       Brian Gunlogson <bmg300 () yahoo ! com>
Date:       2005-11-11 1:41:12
Message-ID: 20051111014112.74270.qmail () web32913 ! mail ! mud ! yahoo ! com
[Download RAW message or body]

I also sent this patch to mingw's patch tracker on sourceforge.


Changelog:

2005-11-10 Brian Gunlogson

* lib/user32.def, include/winuser.h (Get/SetClassLongPtr): Added API and the related constants.


		
__________________________________ 
Yahoo! FareChase: Search multiple travel sites in one click.
http://farechase.yahoo.com
["w32api-brian-2005-11-10.patch" (application/octet-stream)]

diff -ur w32api-3.5-src-orig/include/winuser.h w32api-3.5/include/winuser.h
--- w32api-3.5-src-orig/include/winuser.h	2005-08-10 19:59:49.000000000 -0500
+++ w32api-3.5/include/winuser.h	2005-11-10 16:32:15.000000000 -0600
@@ -612,6 +612,13 @@
 #define GCL_MENUNAME (-8)
 #define GCL_STYLE (-26)
 #define GCL_WNDPROC (-24)
+#define GCLP_MENUNAME (-8)
+#define GCLP_HBRBACKGROUND (-10)
+#define GCLP_HCURSOR (-12)
+#define GCLP_HICON (-14)
+#define GCLP_HMODULE (-16)
+#define GCLP_WNDPROC (-24)
+#define GCLP_HICONSM (-34)
 #if 0
     /* This is supposed to be defined by the program using it not defined
        in the w32api headers.  I've left it here for documentation purposes.
@@ -3453,6 +3460,8 @@
 WINUSERAPI BOOL WINAPI GetClassInfoExW(HINSTANCE,LPCWSTR,LPWNDCLASSEXW);
 WINUSERAPI DWORD WINAPI GetClassLongA(HWND,int);
 WINUSERAPI DWORD WINAPI GetClassLongW(HWND,int);
+WINUSERAPI ULONG_PTR WINAPI GetClassLongPtrA(HWND,int);
+WINUSERAPI ULONG_PTR WINAPI GetClassLongPtrW(HWND,int);
 WINUSERAPI int WINAPI GetClassNameA(HWND,LPSTR,int);
 WINUSERAPI int WINAPI GetClassNameW(HWND,LPWSTR,int);
 WINUSERAPI WORD WINAPI GetClassWord(HWND,int);
@@ -3776,6 +3785,8 @@
 WINUSERAPI BOOL WINAPI SetCaretPos(int,int);
 WINUSERAPI DWORD WINAPI SetClassLongA(HWND,int,LONG);
 WINUSERAPI DWORD WINAPI SetClassLongW(HWND,int,LONG);
+WINUSERAPI ULONG_PTR WINAPI SetClassLongPtrA(HWND,int,LONG_PTR);
+WINUSERAPI ULONG_PTR WINAPI SetClassLongPtrW(HWND,int,LONG_PTR);
 WINUSERAPI WORD WINAPI SetClassWord(HWND,int,WORD);
 WINUSERAPI HANDLE WINAPI SetClipboardData(UINT,HANDLE);
 WINUSERAPI HWND WINAPI SetClipboardViewer(HWND);
@@ -3989,6 +4000,7 @@
 #define GetClassInfo GetClassInfoW
 #define GetClassInfoEx GetClassInfoExW
 #define GetClassLong GetClassLongW
+#define GetClassLongPtr GetClassLongPtrW
 #define GetClassName GetClassNameW
 #define GetClipboardFormatName GetClipboardFormatNameW
 #define GetDlgItemText GetDlgItemTextW
@@ -4053,6 +4065,7 @@
 #define SendMessageTimeout SendMessageTimeoutW
 #define SendNotifyMessage SendNotifyMessageW
 #define SetClassLong SetClassLongW
+#define SetClassLongPtr SetClassLongPtrW
 #define SetDlgItemText SetDlgItemTextW
 #define SetMenuItemInfo SetMenuItemInfoW
 #define SetProp SetPropW
@@ -4154,6 +4167,7 @@
 #define GetClassInfo GetClassInfoA
 #define GetClassInfoEx GetClassInfoExA
 #define GetClassLong GetClassLongA
+#define GetClassLongPtr GetClassLongPtrA
 #define GetClassName GetClassNameA
 #define GetClipboardFormatName GetClipboardFormatNameA
 #define GetDlgItemText GetDlgItemTextA
@@ -4218,6 +4232,7 @@
 #define SendMessageTimeout SendMessageTimeoutA
 #define SendNotifyMessage SendNotifyMessageA
 #define SetClassLong SetClassLongA
+#define SetClassLongPtr SetClassLongPtrA
 #define SetDlgItemText SetDlgItemTextA
 #define SetMenuItemInfo SetMenuItemInfoA
 #define SetProp SetPropA
diff -ur w32api-3.5-src-orig/lib/user32.def w32api-3.5/lib/user32.def
--- w32api-3.5-src-orig/lib/user32.def	2005-08-10 19:59:50.000000000 -0500
+++ w32api-3.5/lib/user32.def	2005-11-10 16:12:34.000000000 -0600
@@ -232,6 +232,8 @@
 GetClassInfoW@12
 GetClassLongA@8
 GetClassLongW@8
+GetClassLongPtrA@8
+GetClassLongPtrW@8
 GetClassNameA@12
 GetClassNameW@12
 GetClassWord@8
@@ -515,6 +517,8 @@
 SetCaretPos@8
 SetClassLongA@12
 SetClassLongW@12
+SetClassLongPtrA@12
+SetClassLongPtrW@12
 SetClassWord@12
 SetClipboardData@8
 SetClipboardViewer@4


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic