summaryrefslogtreecommitdiff
path: root/gdk/win32/gdkwin32.h
diff options
context:
space:
mode:
authorTor Lillqvist <tml@iki.fi>2000-07-04 06:12:54 +0000
committerTor Lillqvist <tml@src.gnome.org>2000-07-04 06:12:54 +0000
commita1260f864dc85013eb2a66563ffa0369921b5fe4 (patch)
tree778455fc4d3d59d6d00cc0d892aa587f7049bfb0 /gdk/win32/gdkwin32.h
parentceac1c16fd5f74a7914b85f85a691bb68e1a756f (diff)
downloadgtk+-a1260f864dc85013eb2a66563ffa0369921b5fe4.tar.gz
Handle also WM_SYSCHAR, and other changes to get handling of Alt+nnn or
2000-07-04 Tor Lillqvist <tml@iki.fi> * gdk/win32/gdkevents-win32.c (gdk_event_translate): Handle also WM_SYSCHAR, and other changes to get handling of Alt+nnn or Alt+0nnn on the numpad (used to enter characters by numeric code from current DOS or ANSI codepage) working correctly, as in other Windows apps. * gdk/win32/gdkcursor-win32.c (gdk_cursor_new_from_pixmap): Use same argument validity tests as in X11 version. (_gdk_cursor_destroy): Use DestroyCursor, not DestroyIcon. * gdk/win32/gdkwin32.h: Add also WM_MOUSEWHEEL and CopyCursor definitions in case missing from headers. * gdk/win32/gdkwindow-win32.c (gdk_win32_window_destroy): ALso destroy the window-specific cursor. (RegisterGdkClass): Use the global gdk_ProgInstance instead of calling GetModuleHandle(NULL). (gdk_window_set_cursor): Reworked to always copy the passed cursor with CopyCursor before setting it. It is OK for the caller to destroy the GdkCursor (and thus also the Windows cursor) after calling this function. Also, destroy any previous cursor for this window. 2000-05-29 Tor Lillqvist <tml@iki.fi> * gdk/win32/gdkevents-win32.c (gdk_WindowProc): The local "event" variable should be of type GdkEventPrivate.
Diffstat (limited to 'gdk/win32/gdkwin32.h')
-rw-r--r--gdk/win32/gdkwin32.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/gdk/win32/gdkwin32.h b/gdk/win32/gdkwin32.h
index c417539742..cc99aa97c6 100644
--- a/gdk/win32/gdkwin32.h
+++ b/gdk/win32/gdkwin32.h
@@ -64,6 +64,9 @@
/* Missing messages */
+#ifndef WM_MOUSEWHEEL
+#define WM_MOUSEWHEEL 0X20A
+#endif
#ifndef WM_GETOBJECT
#define WM_GETOBJECT 0x3D
#endif
@@ -140,6 +143,10 @@
#define WM_AFXLAST 0x37F
#endif
+#ifndef CopyCursor
+#define CopyCursor(pcur) ((HCURSOR)CopyIcon((HICON)(pcur)))
+#endif
+
#include <gdk/gdkprivate.h>
/* Define corresponding Windows types for some X11 types, just for laziness. */