summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--winsup/w32api/ChangeLog14
-rw-r--r--winsup/w32api/include/winuser.h2
2 files changed, 15 insertions, 1 deletions
diff --git a/winsup/w32api/ChangeLog b/winsup/w32api/ChangeLog
index 0bfeb685c..d6b912509 100644
--- a/winsup/w32api/ChangeLog
+++ b/winsup/w32api/ChangeLog
@@ -1,3 +1,17 @@
+2003-10-13 Andre Auzi <aauzi@users.sourceforge.net>
+
+ * include/windows.h (CopyCursor): Although MSDN pretends this is
+ a function to be imported from user32.lib, it's actually a macro.
+ From the Delphi FAQ:
+ Question:
+ Where is the Windows API function CopyCursor defined in
+ 32-Bit versions of Delphi and C++ Builder?
+ Answer:
+ While the call is documented in the Win32 help file, the
+ function is simply mapped to the Windows API function
+ CopyIcon(). Note that the 32 bit version of CopyIcon
+ does not take a hInstance parameter.
+
2003-10-13 Steven Edwards <Steven_Ed4153@yahoo.com>
* include/winnt.h (CONTAINING_RECORD): Add macro.
diff --git a/winsup/w32api/include/winuser.h b/winsup/w32api/include/winuser.h
index 1c1284183..abe43f3ca 100644
--- a/winsup/w32api/include/winuser.h
+++ b/winsup/w32api/include/winuser.h
@@ -3161,7 +3161,7 @@ BOOL WINAPI CloseWindow(HWND);
BOOL WINAPI CloseWindowStation(HWINSTA);
int WINAPI CopyAcceleratorTableA(HACCEL,LPACCEL,int);
int WINAPI CopyAcceleratorTableW(HACCEL,LPACCEL,int);
-HCURSOR WINAPI CopyCursor(HCURSOR);
+#define CopyCursor(c) ((HCURSOR)CopyIcon((HICON)(c)))
HICON WINAPI CopyIcon(HICON);
HANDLE WINAPI CopyImage(HANDLE,UINT,int,int,UINT);
BOOL WINAPI CopyRect(LPRECT,LPCRECT);