aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDimitri Papadopoulos <dimitri_at@users.sf.net>2003-10-13 06:02:06 +0000
committerDimitri Papadopoulos <dimitri_at@users.sf.net>2003-10-13 06:02:06 +0000
commit36ef425c19b48aa111df6fd464808e4b3b1fe39c (patch)
tree2da5cd0a2cd29ada970cbe53fd984a92de66e8d3
parent29598fc7e089ff7fddb7a1bf4ac5b61600b5c132 (diff)
downloadnewlib-36ef425c19b48aa111df6fd464808e4b3b1fe39c.zip
newlib-36ef425c19b48aa111df6fd464808e4b3b1fe39c.tar.gz
newlib-36ef425c19b48aa111df6fd464808e4b3b1fe39c.tar.bz2
* 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.
-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 0bfeb68..d6b9125 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 1c12841..abe43f3 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);