• <ins id="pjuwb"></ins>
    <blockquote id="pjuwb"><pre id="pjuwb"></pre></blockquote>
    <noscript id="pjuwb"></noscript>
          <sup id="pjuwb"><pre id="pjuwb"></pre></sup>
            <dd id="pjuwb"></dd>
            <abbr id="pjuwb"></abbr>
            酸菜豬蹄的程序人生
            木下編程屯屯燙燙
            Technorati 標簽:

            和一個朋友聊天談起,說起他們項目的一個需求,應用程序中不想彈出輸入法窗口。結果一搜就搜到了,微軟的支持站點就有。特此摘錄下來,已備將來需要。

            How to disable IME for a particular window

            In the East Asian versions of Windows 95 and Windows NT 4.0, applications can call ImmAssociateContext() to disable IME for a certain window. Windows 95 and Windows 4.0 now have a new East Asian Common API Specification that enables this to would work for the Chinese, Japanese, and Korean versions of Windows 95 and Windows NT 4.0.

            Sample code
            To disable IME for a certain window, an application can call ImmAssociateContext() API as shown below:
            HIMC hIMC;
            hIMC = ImmAssociateContext(hWnd, NULL);
            // It makes IME disable for hWnd window.
            // Then you can do whatever you want without IME.


            ImmAssociateContext(hWnd, hIMC);
            // If you want to enable IME again,
            // then you can use the previous stored IME
            // context(hIMC) to restore IME.

            This method will not work on Windows 3.1 and Windows NT 3.5. You can use WinnlsEnableIME()for these systems, but this function will enable/disable the whole system IME, not just for a specific window.
            The reason ImmAssociateContext() does not work on Windows NT 3.51 is that when Microsoft was developing new IMM functions, Windows NT 3.51 was already released with old functionality. Windows NT 3.5 and 3.51 still use Windows 3.1 style IME API like WinnlsEnableIME and SendIMEMessageEx. But, Windows NT 4.0 adapted Windows 95's IME API so that Windows NT 4.0 has the same set of IME API with Windows 95.

            希望能給閱讀此文的朋友帶來幫助。

            posted on 2008-01-27 16:43 cooelaf 閱讀(1864) 評論(0)  編輯 收藏 引用 所屬分類: Win32
             
            久久国产亚洲高清观看| 久久久久久精品免费看SSS| …久久精品99久久香蕉国产 | 91麻精品国产91久久久久| 亚洲国产精品婷婷久久| 久久精品这里只有精99品| 亚洲а∨天堂久久精品9966| 亚洲av成人无码久久精品 | 亚洲va久久久噜噜噜久久天堂| 少妇人妻88久久中文字幕| 99久久精品免费看国产| 欧美日韩精品久久久免费观看| 91精品国产91久久综合| 性高朝久久久久久久久久| 狠狠色丁香久久婷婷综| 一级a性色生活片久久无| 久久久久久夜精品精品免费啦| 精品人妻伦一二三区久久| 久久精品中文无码资源站| 国产福利电影一区二区三区久久老子无码午夜伦不 | 要久久爱在线免费观看| 日韩人妻无码精品久久免费一| 狠狠久久综合伊人不卡| 国产精品9999久久久久| 一本色道久久88—综合亚洲精品| 久久人妻少妇嫩草AV蜜桃| 97久久综合精品久久久综合| 香蕉久久av一区二区三区| 国内精品久久久久影院亚洲| 久久久精品久久久久久| 国产毛片久久久久久国产毛片| 狠狠88综合久久久久综合网| 狠狠色婷婷久久一区二区 | 2021久久国自产拍精品| 人妻少妇久久中文字幕一区二区 | 久久国产乱子精品免费女| 色欲久久久天天天综合网| 久久天天躁夜夜躁狠狠躁2022 | 精品无码久久久久国产| 精品久久久久久国产潘金莲| 日韩精品久久无码中文字幕|