• <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 閱讀(1865) 評論(0)  編輯 收藏 引用 所屬分類: Win32
             
            久久99精品久久久大学生| 无码人妻久久一区二区三区| 欧美久久综合九色综合| 久久久久久久亚洲精品| 久久精品国产WWW456C0M| 久久噜噜久久久精品66| 一级A毛片免费观看久久精品| 久久国产成人午夜aⅴ影院| 久久国产免费直播| 午夜精品久久久久久| 久久精品国产亚洲av麻豆小说| 99久久精品国产综合一区| 99精品久久久久久久婷婷| 久久乐国产精品亚洲综合| 久久se精品一区精品二区| 久久婷婷国产剧情内射白浆| 日韩亚洲欧美久久久www综合网| 亚洲伊人久久大香线蕉综合图片| 精品无码人妻久久久久久| 国产精品久久成人影院| 亚洲乱码精品久久久久..| 伊人久久大香线蕉AV一区二区| 久久99国产精品一区二区| 欧美va久久久噜噜噜久久| 国产精品中文久久久久久久 | 伊人色综合久久天天人守人婷| 99久久国产综合精品麻豆| 波多野结衣AV无码久久一区| 久久久久久久综合狠狠综合| 久久久精品久久久久久| 国产午夜福利精品久久| 国产精品内射久久久久欢欢| 一本伊大人香蕉久久网手机| 91久久九九无码成人网站| 国产成人久久精品二区三区| 国产亚洲综合久久系列| 91精品国产高清久久久久久io | 乱亲女H秽乱长久久久| 无码超乳爆乳中文字幕久久| 99久久国产综合精品女同图片| 久久精品国产亚洲av麻豆蜜芽|