XEmacs 21.2.19 "Shinjuku".
[chise/xemacs-chise.git.1] / src / event-msw.c
index 2a9b919..45e77ee 100644 (file)
@@ -73,11 +73,7 @@ typedef unsigned int SOCKET;
 #include <errno.h>
 
 #if defined (__CYGWIN32__) && !defined (CYGWIN_VERSION_DLL_MAJOR)
-typedef struct tagNMHDR { 
-  HWND hwndFrom; 
-  UINT idFrom; 
-  UINT code; 
-} NMHDR, *PNMHDR, *LPNMHDR; 
+typedef NMHDR *LPNMHDR;
 #endif
 
 #ifdef HAVE_MENUBARS
@@ -1974,6 +1970,8 @@ mswindows_wnd_proc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
          TC_ITEM item;
          int index = SendMessage (nmhdr->hwndFrom, TCM_GETCURSEL, 0, 0);
          frame = XFRAME (mswindows_find_frame (hwnd));
+
+         item.mask = TCIF_PARAM;
          SendMessage (nmhdr->hwndFrom, TCM_GETITEM, (WPARAM)index,
                       (LPARAM)&item);