• <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精品一区二区| 日韩欧美亚洲综合久久| 久久精品aⅴ无码中文字字幕不卡| 久久国产免费直播| 精品蜜臀久久久久99网站| 中文字幕亚洲综合久久2| 久久久久亚洲精品无码网址 | 青青草原综合久久大伊人| 99久久综合国产精品免费| 久久久久亚洲AV成人片| 久久99久久成人免费播放| 久久久久久久久波多野高潮| 久久99国产精品久久| 久久99国产精品久久99小说| 日产精品久久久久久久性色| 精品无码久久久久久久久久| 久久夜色精品国产噜噜噜亚洲AV | 久久久久亚洲AV无码去区首| 18岁日韩内射颜射午夜久久成人| 久久综合久久综合九色| 久久精品国产免费观看| 久久婷婷色综合一区二区| 久久精品国产亚洲麻豆| 久久婷婷五月综合97色| 久久人与动人物a级毛片| 久久精品中文字幕有码| 久久久九九有精品国产| 国内精品久久久久伊人av| 久久AV高潮AV无码AV| 日韩欧美亚洲国产精品字幕久久久| 久久99精品国产99久久| 久久精品午夜一区二区福利| 97精品伊人久久久大香线蕉| 久久91精品国产91| 久久久久亚洲AV成人网人人网站 | 欧洲国产伦久久久久久久| 久久综合久久久| 久久精品国产一区二区三区日韩| 人妻精品久久久久中文字幕一冢本| 久久这里只精品99re66| 免费久久人人爽人人爽av|