|
WM_PENCTL
Performs several actions, including:
- Converts a logical character position to a byte offset.
- Converts a byte offset to a logical character position.
- Switches the font in a bedit control to the default font.
Parameters
wParam
Submessage identifier as described in the following table. Each submessage is
documented separately.
Constant
| Description
| HE_CANCELCONVERT
| Cancels Kana-to-Kanji conversion. (Japanese version only.)
| HE_CHAROFFSET
| Converts logical character position of a character in the control to byte
offset to the character. For bedit controls only.
| HE_CHARPOSITION
| Converts byte offset in the text buffer of the control to the logical
character position, which contains the byte specified by the byte offset. For bedit
controls only.
| HE_DEFAULTFONT
| Switches the font of the bedit control to the default font that the bedit
selects at the time of creation. For bedit controls only.
| HE_ENABLEALTLIST
| Enables or disables the alternate list in a bedit control.
| HE_FIXKKCONVERT
| Confirm undetermined string and close Input Method Editor (IME). (Japanese
version only.)
| HE_GETBOXLAYOUT
| Points to the BOXLAYOUT structure, which is filled with the current box layout for the control. For
bedit controls only.
| HE_GETCONVERTRANGE
| Gets the range of the marked conversion string. (Japanese version only.)
| HE_GETINFLATE
| LPRECTOFS filled with current value.
| HE_GETINKHANDLE
| Retrieves a handle to the captured ink.
| HE_GETKKCONVERT
| Determines if the Input Method Editor (IME) is in pen (or keyboard) conversion
mode. (Japanese version only.)
| HE_GETKKSTATUS
| Determines the mode of the Kana-to-Kanji conversion. (Japanese version only.)
| HE_GETRC
| Fills an RC structure, whose address is passed in the lParam, with current values. See the note that follows.
| HE_GETUNDERLINE
| Queries whether underline mode is set. For hedit controls only.
| HE_HIDEALTLIST
| Hides the alternate list in a bedit control, assuming it is being displayed.
| HE_KKCONVERT
| Starts Kana-to-Kanji conversion. (Japanese version only.)
| HE_PUTCONVERTCHAR
| Sends a character, marked for conversion, to the IME. (Japanese version only.)
| HE_SETBOXLAYOUT
| Sets a BOXLAYOUT structure. For bedit controls only.
| HE_SETCONVERTRANGE
| Sets the range of the marked conversion string. (Japanese version only.)
| HE_SETINFLATE
| Specifies adjustments to the control window to specify the size of the writing
window.
| HE_SETINKMODE
| Starts the collection of inking.
| HE_SETRC
| Sets the RC structure, whose address is passed in the lParam. See the note that follows.
| HE_SETUNDERLINE
| Sets or cancels underline mode. For hedit controls only.
| HE_SHOWALTLIST
| Displays the alternate list menu in a bedit control, assuming that alternate
lists are enable.
| HE_STOPINKMODE
| Stops the collection of ink.
|
The HE_GETRC and HE_SETRC submessages are provided only for compatibility with
version 1.0 of the Pen API and will not be supported in future versions.
lParam
Depends on wParam. See the individual HE_ submessage descriptions for more information.
Comments
Any control message (a message with the EM_ prefix) that can be sent to an
edit control can also be sent to an hedit window. Most of these control messages
are also supported by bedit controls.
The HE_ submessages are also common to both hedit and bedit controls except as
noted in the preceding table. In a bedit control, each cell contains one
logical character. Carriage return (CR) and line-feed (LF) bytes together form one
logical character.
Before using the HE_SETBOXLAYOUT or HE_SETINFLATE submessages, it is often
useful to retrieve the current structure associated with the control using the
HE_GETBOXLAYOUT or HE_GETINFLATE submessages. You should then change the
appropriate members in the retrieved structure. This procedure reduces the risk of
inadvertent changes to the structure.
In older applications compatible with version 1.0 of the Pen API, placing the
value RRM_SYMBOL in wResultMode of the RC structure disables all default diction-ary processing in a bedit control. The
1.0 application can perform dictionary pro-cessing on its own by retrieving
the recognition results during the processing of the HN_RESULT notification and
calling the DictionarySearch function.
See Also
HE_CANCELCONVERT, HE_CHAROFFSET, HE_CHARPOSITION, HE_DEFAULTFONT,
HE_ENABLEALTLIST, HE_FIXKKCONVERT, HE_GETBOXLAYOUT, HE_GETIMEDEFAULT, HE_GETINFLATE,
HE_GETINKHANDLE, HE_GETKKCONVERT, HE_GETKKSTATUS, HE_GETUNDERLINE, HE_SETBOXLAYOUT,
HE_SETIMEDEFAULT, HE_SETINFLATE, HE_SETINKMODE, HE_SETUNDERLINE, HE_SHOWALTLIST,
HE_STOPINKMODE
| Last news from Greatis Software |
 |
|
Nostalgia .Net |
|
.Net is powerful, but not all-powerful, so sometimes we need to use Win32 API for our .Net applications. It's simple enough with Platform Invoke if you have Win32 skill, but we do not always have time to dig the ancient documentation, declare the special types that are compatible with Win32, find the values of the Win32's constants and so on. Nostalgia .Net offers several simple-to-use classes, and components that will allow you to forget about the headache of Win32 and just use the power of Win32 in your application the same way as you use the native. Net classes. More » |
| Recommended software for developers |
 |
|
Ultimate Pack |
|
Component pack for Delphi and C++ Builder that contains runtime form designer, runtime object inspector, print suite and much more for the very special price. More » |
 |
|
Form Designer .Net |
|
Unique runtime form design solution that allows to edit any form in .Net WinForms application at runtime with full source codes for only 300 euro! More » |
 |
|
Print Suite .Net |
|
Print Suite .Net is a set of components for easy printing texts, images and grids from your WinForms applications. Full C# source codes are available More » |
 |
|
Gradient Controls .Net |
|
Gradient Controls .Net offers controls with gradient background feature. Labels, panels and so on... Full C# source codes are available More » |
 |
|
Greatis iGrid |
|
iGrid plots drawing grid right over your desktop, so you can use it everywhere, with any drawing application without any special plugins for different graphic editors. More » |
All the contacts and projectsDmitry Vasiliev (just.dmitry)
Related LinksSoftware for Visual Studio .NET developers Software for Delphi and C++ Builder developers Software for Visual Basic 6 developers Delphi Tips&Tricks MegaDetailed.NET More Online Helps Win32 Programmer's Reference Win32 Multimedia Programmer's Reference OLE Programmer's Reference Microsoft Windows Pen API Programmer's Reference Microsoft Windows Sockets 2 Reference Microsoft Windows Telephony API (TAPI) Programmer's Reference Unix Manual Pages
|