Jump to content

WinDBCSIMEControl: Difference between revisions

From EDM2
Created page with "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,hwndFram..."
 
No edit summary
Line 17: Line 17:
;pIMEMode (PIMEMODE)  
;pIMEMode (PIMEMODE)  
:Pointer to IMEMode structure.
:Pointer to IMEMode structure.


         typedef struct _IMEMODE {USHORT lenIMEMode;
         typedef struct _IMEMODE {USHORT lenIMEMode;
Line 26: Line 25:


         comact tsize=14 compact.
         comact tsize=14 compact.
        lenIMEMode
 
            Length of this structure. fIMEMode
:;lenIMEMode
            comact tsize=4 break=all compact.
::Length of this structure.  
 
:;fIMEMode
::comact tsize=4 break=all compact.


             DBE_IMCTL_IMEENABLE
             DBE_IMCTL_IMEENABLE
Line 35: Line 37:
                 (Japanese, Korean; ineffective for T-Chinese) DBE_IMCTL_NOTIMEMODE
                 (Japanese, Korean; ineffective for T-Chinese) DBE_IMCTL_NOTIMEMODE
                 (Japanese, Korean; ineffective for T-Chinese) DBE_IMCTL_INHERIT_PFRAME
                 (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 (**)
:;hIME (**)
                 Module handle of the IME that is associated with the frame window. (Ignored in a set request.) Return Code
::Handle of the Input Method Editor (IME) that is associated with the frame window. (Ignored in a set request.)  
                (BOOL) comact tsize=32 compact break=fit. TRUE
 
                FALSE
:;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



Revision as of 16:12, 8 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. comact tsize=32 compact. 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;
       comact tsize=14 compact.
lenIMEMode
Length of this structure.
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
                   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)