gtk/modules/input/imm-extra.h
Matthias Clasen 24dd1030f0 Build imime.la on Windows.
2004-08-26  Matthias Clasen  <mclasen@redhat.com>

	* modules/input/Makefile.am: Build imime.la on Windows.

	* modules/input/gtkimcontextime.h:
	* modules/input/gtkimcontextime.c:
	* modules/input/imime.c:
	* modules/input/imm-extra.h: Add the IME input method for Win32
	written by Takuro Ashie and Kazuko IWAMOTO. The code was previously
	hosted at http://sourceforge.jp/projects/imime.  (#135195)
2004-08-26 14:29:25 +00:00

50 lines
1.2 KiB
C

/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/* $Id$ */
#include <windows.h>
#include <imm.h>
/* these aren't defined in Cygwin's imm.h */
#ifndef WM_IME_REQUEST
# define WM_IME_REQUEST 0x0288
#endif /* WM_IME_REQUEST */
#ifndef IMR_COMPOSITIONWINDOW
# define IMR_COMPOSITIONWINDOW 0x0001
#endif /* IMR_COMPOSITIONWINDOW */
#ifndef IMR_CANDIDATEWINDOW
# define IMR_CANDIDATEWINDOW 0x0002
#endif /* IMR_CANDIDATEWINDOW */
#ifndef IMR_COMPOSITIONFONT
# define IMR_COMPOSITIONFONT 0x0003
#endif /* IMR_COMPOSITIONFONT */
#ifndef IMR_RECONVERTSTRING
# define IMR_RECONVERTSTRING 0x0004
#endif /* IMR_RECONVERTSTRING */
#ifndef IMR_CONFIRMRECONVERTSTRING
# define IMR_CONFIRMRECONVERTSTRING 0x0005
#endif /* IMR_CONFIRMRECONVERTSTRING */
#ifndef IMR_QUERYCHARPOSITION
# define IMR_QUERYCHARPOSITION 0x0006
typedef struct tagIMECHARPOSITION {
DWORD dwSize;
DWORD dwCharPos;
POINT pt;
UINT cLineHeight;
RECT rcDocument;
} IMECHARPOSITION, *PIMECHARPOSITION;
#endif /* IMR_QUERYCHARPOSITION */
#ifndef IMR_DOCUMENTFEED
# define IMR_DOCUMENTFEED 0x0007
#endif /* IMR_DOCUMENTFEED */