Keyboard Input
In this section, you can find how the DBCS input mechanism is supported
in the current DBCS system software, DOS and OS/2. After that we will show
you how these functions are supported on the DBCS PM, and what you should
do to make them work correctly and efficiently in your application program.
Summary
- Apply the window controls provided by the system,
for example the entry field or multi-line editor, instead of handling the
key input by yourself.
- Handle the WM_CHAR for a DBCS character as well as
a SBCS Character.
- Add the keyboard status line in your window if keyboard
input is required.
- Do not check the scan code, or your program is not
hardware independent.
- Handle the WM_QUERYCONVERTPOS to perform the on-the-spot
conversion.
- Don't forget that the DBCS input data can be received
from the clipboard. They need to be handled correctly as well as the DBCS
input data from keyboard.
- If you want to apply the DBCS unique keyboard APIs,
don't forget they are different from country to country and are not provided
in SBCS OS/2.
[Back: Presentation]
[Next: Keyboard and Input Methods]