projects
/
chise
/
xemacs-chise.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
(MAKE_CHAR): Check the result for range-represented charset.
[chise/xemacs-chise.git]
/
src
/
event-msw.c
diff --git
a/src/event-msw.c
b/src/event-msw.c
index
e8d8fc0
..
45e77ee
100644
(file)
--- a/
src/event-msw.c
+++ b/
src/event-msw.c
@@
-72,6
+72,10
@@
typedef unsigned int SOCKET;
#include <io.h>
#include <errno.h>
#include <io.h>
#include <errno.h>
+#if defined (__CYGWIN32__) && !defined (CYGWIN_VERSION_DLL_MAJOR)
+typedef NMHDR *LPNMHDR;
+#endif
+
#ifdef HAVE_MENUBARS
#define ADJR_MENUFLAG TRUE
#else
#ifdef HAVE_MENUBARS
#define ADJR_MENUFLAG TRUE
#else
@@
-1929,7
+1933,6
@@
mswindows_wnd_proc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
case WM_NOTIFY:
{
LPNMHDR nmhdr = (LPNMHDR)lParam;
case WM_NOTIFY:
{
LPNMHDR nmhdr = (LPNMHDR)lParam;
- int idCtrl = (int)wParam;
if (nmhdr->code == TTN_NEEDTEXT)
{
if (nmhdr->code == TTN_NEEDTEXT)
{
@@
-1967,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));
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);
SendMessage (nmhdr->hwndFrom, TCM_GETITEM, (WPARAM)index,
(LPARAM)&item);