Jump to content

WinDBCSIMEControl: Difference between revisions

From EDM2
No edit summary
Ak120 (talk | contribs)
mNo edit summary
Line 1: Line 1:
This is also a DBCS OS/2 unique call and used to query or set the status (enabled, disabled, on or off) of the DBCS input method.  
This is also a DBCS OS/2 unique call and used to query or set the status (enabled, disabled, on or off) of the DBCS input method.


==Syntax==
==Syntax==
  WinDBCSIMEControl (hab,hwndFrame,type,pIMEMode)
  WinDBCSIMEControl (hab, hwndFrame, type, pIMEMode)


==Parameters==
==Parameters==
;hab (HAB)  
;hab (HAB):Anchor-block handle.
:Anchor-block handle.  
;hwndFrame (HWND):Frame-window handle.
 
;type (USHORT):Request type.
;hwndFrame (HWND)  
::DBE_IMCTL_QUERY
:Frame-window handle.  
::DBE_IMCTL_SET
 
;pIMEMode (PIMEMODE):Pointer to IMEMode structure.
; type (USHORT)  
:Request type. comact tsize=32 compact. DBE_IMCTL_QUERY
    DBE_IMCTL_SET
 
;pIMEMode (PIMEMODE)  
:Pointer to IMEMode structure.
 
         typedef struct _IMEMODE {USHORT lenIMEMode;
         typedef struct _IMEMODE {USHORT lenIMEMode;
                 USHORT    fIMEMode;
                 USHORT    fIMEMode;
Line 23: Line 16:
                 USHORT    hModIME;
                 USHORT    hModIME;
                 }  IMEMODE, FAR *PIMEMODE;
                 }  IMEMODE, FAR *PIMEMODE;
:;lenIMEMode:Length of this structure.
:;fIMEMode:
:::DBE_IMCTL_IMEENABLE
:::DBE_IMCTL_IMEDISABLE
:::DBE_IMCTL_IMEMODE
:::(Japanese, Korean; ineffective for T-Chinese) DBE_IMCTL_NOTIMEMODE
:::(Japanese, Korean; ineffective for T-Chinese) DBE_IMCTL_INHERIT_PFRAME
:;hIME:Handle of the Input Method Editor (IME) that is associated with the frame window. (Ignored in a set request.)
:;hModIMEM (**):Module handle of the IME that is associated with the frame window. (Ignored in a set request.)


        comact tsize=14 compact.
==Returns==
 
;Return Code:(BOOL)
:;lenIMEMode
::TRUE
::Length of this structure.
::FALSE
 
:;fIMEMode
::comact tsize=4 break=all compact.
 
            DBE_IMCTL_IMEENABLE
            DBE_IMCTL_IMEDISABLE
            DBE_IMCTL_IMEMODE
                (Japanese, Korean; ineffective for T-Chinese) DBE_IMCTL_NOTIMEMODE
                (Japanese, Korean; ineffective for T-Chinese) DBE_IMCTL_INHERIT_PFRAME
 
:;hIME (**)
::Handle of the Input Method Editor (IME) that is associated with the frame window. (Ignored in a set request.)
 
:;hModIMEM (**)
                Module handle of the IME that is associated with the frame window. (Ignored in a set request.)
 
:;Return Code
::(BOOL) comact tsize=32 compact break=fit.
::;TRUE
::;FALSE
                  
                  
                    WM_CHAR - PM
WM_CHAR - PM


                    DBCS OS/2 additionally defines the following virtual key values. comact tsize=32 compact.
DBCS OS/2 additionally defines the following virtual key values. comact tsize=32 compact.


                    VK_DBE_ALPHANUMERIC
VK_DBE_ALPHANUMERIC
                    VK_DBE_SBCSCHAR
VK_DBE_SBCSCHAR
                    VK_DBE_DBCSCHAR
VK_DBE_DBCSCHAR
                    VK_DBE_SBCSDBCSCHAR
VK_DBE_SBCSDBCSCHAR
                    VK_DBE_KATAKANA
VK_DBE_KATAKANA (Japanese)
                        (Japanese) VK_DBE_HIRAGANA
VK_DBE_HIRAGANA (Japanese)
                        (Japanese) VK_DBE_ROMAN
VK_DBE_ROMAN (Japanese)
                        (Japanese) VK_DBE_HANJA
VK_DBE_HANJA (Korean)
                        (Korean) VK_DBE_HANGEUL
VK_DBE_HANGEUL (Korean)
                        (Korean) VK_DBE_JAMO
VK_DBE_JAMO (Korean)
                        (Korean) VK_DBE_TSANGJYE
VK_DBE_TSANGJYE (T-Chinese)
                        (T-Chinese) VK_DBE_PHONETIC
VK_DBE_PHONETIC (T-Chinese)
                        (T-Chinese)

Revision as of 14:21, 9 October 2023

This is also a DBCS OS/2 unique call and used to query or set the status (enabled, disabled, on or off) of the DBCS input method.

Syntax

WinDBCSIMEControl (hab, hwndFrame, type, pIMEMode)

Parameters

hab (HAB)
Anchor-block handle.
hwndFrame (HWND)
Frame-window handle.
type (USHORT)
Request type.
DBE_IMCTL_QUERY
DBE_IMCTL_SET
pIMEMode (PIMEMODE)
Pointer to IMEMode structure.
       typedef struct _IMEMODE {USHORT lenIMEMode;
               USHORT    fIMEMode;
               USHORT    hIME;
               USHORT    hModIME;
               }  IMEMODE, FAR *PIMEMODE;
lenIMEMode
Length of this structure.
fIMEMode
DBE_IMCTL_IMEENABLE
DBE_IMCTL_IMEDISABLE
DBE_IMCTL_IMEMODE
(Japanese, Korean; ineffective for T-Chinese) DBE_IMCTL_NOTIMEMODE
(Japanese, Korean; ineffective for T-Chinese) DBE_IMCTL_INHERIT_PFRAME
hIME
Handle of the Input Method Editor (IME) that is associated with the frame window. (Ignored in a set request.)
hModIMEM (**)
Module handle of the IME that is associated with the frame window. (Ignored in a set request.)

Returns

Return Code
(BOOL)
TRUE
FALSE
WM_CHAR - PM
DBCS OS/2 additionally defines the following virtual key values. comact tsize=32 compact.
VK_DBE_ALPHANUMERIC
VK_DBE_SBCSCHAR
VK_DBE_DBCSCHAR
VK_DBE_SBCSDBCSCHAR
VK_DBE_KATAKANA (Japanese)
VK_DBE_HIRAGANA (Japanese)
VK_DBE_ROMAN (Japanese)
VK_DBE_HANJA (Korean)
VK_DBE_HANGEUL (Korean)
VK_DBE_JAMO (Korean)
VK_DBE_TSANGJYE (T-Chinese)
VK_DBE_PHONETIC (T-Chinese)