CWX
2.0
Specifies
optional parameters for the CorrectWritingEx1AOBT7 function. (Japanese version only.)
typedef struct {
DWORD
cbSize;
WORD
wApplyFlags;
HWND
hwndText;
HRC hrc;
char
szCaption[CBCAPTIONCWX];
DWORD
dwEditStyle;
DWORD
dwSel;
DWORD
dwFlags;
WORD ixkb;
WORD
rgState[CKBCWX];
POINT
ptUL;
SIZE
sizeHW;
} CWX;
Members
cbSize
Size of this
structure in bytes. This field must be initialized to sizeof(CWX).
wApplyFlags
Options to
specify which members of this structure are to be used to override the
most-recently-used values provided by default; not all fields qualify. If this
value is 0, the most-recently-used settings will be shown; otherwise, this
value can be a combination of the following values:
Constant |
Description |
CWXA_CONTEXT |
Use the dwFlags
member to specify context. |
CWXA_KBD |
Use the ixkb
member to specify a keyboard. |
CWXA_STATE |
Apply the
states provided in the rgState array. |
CWXA_PTUL |
Move the
dialog box upper corner to the screen position specified by the ptUL
member. |
CWXA_SIZE |
Use the
window size specified by the sizeHW member while using the handwriting
recognition tab. |
CWXA_NOUPDATEMRU |
Do not
update the registry with the last state of the correction dialog. This causes
any changes made to the position and state of the Data Input Window to be
discarded. This has no effect on user changes to the text, however. |
hwndText
Text window
to which to send WM_GETTEXT and WM_SETTEXT messages. If this is NULL, the owner
of the Correct Writing dialog box will be used.
hrc
Handle to a
recognition context. If this is NULL, a WM_PENMISC message with the wParam
parameter of PMSC_GETHRC will be sent to the owner window to get a recognition
context. If that too is NULL, then a default context will be used. The system
will destroy its copy of hrc before the call returns.
szCaption[CBCAPTIONCWX]
A
null-terminated array of characters to be used for a dialog caption. If this
string has 0 length, then the default caption Edit Text will be used. The maximum length of caption allowed is
specified by the CBCAPTIONCWX constant.
dwEditStyle
Style to use
for the Data Input Window's edit control. By default this is ES_LEFT. If this
style includes ES_MULTILINE, entry of Return and Tab characters is allowed;
otherwise, they are not allowed. In any case, the style of the actual edit
control will look like a multiline edit control.
dwSel
Specifies the
selection. The low-order word (LOWORD) is the start position and the high-order
word (HIWORD) is the end position. The default values are 0 for start and
0xFFFF for end, to select all text.
dwFlags
Specifies
context flags, provided that the CWXA_CONTEXT bit is set in the wApplyFlags
member; otherwise, the most-recently-used context flags are used and this field
is ignored. On return, this field contains the updated flags. The flags may be
CWX_DEFAULT (0), or a bitwise-OR combination of the following constant values:
Constant |
Description |
CWX_TOPMOST |
Specifies
that the dialog window is to be a topmost window. The window is not topmost
by default. |
CWX_NOTOOLTIPS |
Disables
showing tool tips for graphical buttons. They are shown by default. |
CWX_JPERIOD |
Specifies
that the Japanese period is to be used on some keys on the Data Input Window
keypads. The English period is used by default. |
CWX_JCOMMA |
Specifies
that the Japanese comma is to be used on some keys on the Data Input Window
keypads. The English comma is used by default. |
CWX_DEFAULT |
Zero; none
of the above flags are set. |
ixkb
Specifies
which Data Input Window keyboard, or handwriting input, is to be used first,
provided that the CWXA_KBD bit is set in the wApplyFlags member;
otherwise, the most-recently use keyboard is used and this field is ignored. On
return, this field contains the updated keyboard identifier. This may be one of
the following values:
Constant |
Description |
CWXK_HW |
Handwriting,
not keyboard, input. If this value is specified, most of the dialog will be
available for handwriting input, and the dialog will be sizable. |
CWXK_50 |
50-On
keyboard. |
CWXK_QWERTY |
QWERTY
keyboard, including Hiragana, Katakana, and Romaji-to-Kana conversion
alternative states. |
CWXK_ROMAJI |
Condensed
Romaji-to-Kana keyboard, similar to some pocket computers. |
CWXK_NUM |
Numeric and
Telephone keyboard. |
CWXK_KANJI |
Kanji
keyboard, which provides a method of specifying a Kanji character based on
its strokes. |
CWXK_CODE |
Kanji Code
Finder keyboard, which allows the lookup of a Kanji character based on its
JIS, Shift-JIS, or Kuten code value. |
CWXK_YOMI |
Kanji
character finder based on the sound, or reading (Yomi) of the character. |
rgState[CKBCWX]
An array of
keyboard states with which to initialize the CKBCWX number of keyboards,
provided that the CWXA_STATE bit is set in the wApplyFlags member;
otherwise, the most-recently-used states are used and this member is ignored.
On return, this member contains the updated states. Each element of the array
may be CWXKS_DEFAULT (0, which is equivalent to CWXKS_HAN + CWXKS_ROMA), or a
bitwise-OR combination of the following constants:
Constant |
Description |
CWXKS_CAPS |
Set
CAPSLOCK state on QWERTY keyboard. |
CWXKS_HAN |
Set Hankaku
(single-byte) state. |
CWXKS_ZEN |
Set Zenkaku
(double-byte) state. |
CWXKS_ROMA |
Set Romaji
characters state. |
CWXKS_HIRA |
Set
Hiragana characters state. |
CWXKS_KATA |
Set
Katakana characters state. |
ptUL
Specifies the
upper-left corner of the dialog in screen coordinates, provided that the
CWXA_PTUL bit is set in the wApplyFlags member; otherwise, the
most-recently-used position is used and this member is ignored. On return, this
member contains the updated screen position of the upper-left corner.
sizeHW
Specifies the
size of the dialog when it is in handwriting input mode, provided that the
CWXA_SIZE bit is set in the wApplyFlags member; otherwise, the most-recently-used
size is used and this field is ignored. On return, this field contains the
updated size.
Comments
Note that
even if some bits are not set in wApplyFlags, the corresponding
structure members are still updated with the last-used values on return.
See Also