• <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 閱讀(1852) 評論(0)  編輯 收藏 引用 所屬分類: Win32
             
            久久久久久久精品妇女99| 潮喷大喷水系列无码久久精品| 91久久精品国产成人久久| 精品一久久香蕉国产线看播放 | 欧美国产成人久久精品| 一本色道久久综合狠狠躁| 91久久精品视频| 亚洲国产精品无码久久久蜜芽| 99久久久久| 浪潮AV色综合久久天堂| 看全色黄大色大片免费久久久| 欧美va久久久噜噜噜久久| 精品一久久香蕉国产线看播放| 久久婷婷激情综合色综合俺也去| 91精品国产高清久久久久久91| 色婷婷综合久久久久中文| 久久亚洲精品无码播放| 亚洲欧美日韩精品久久| 久久国产欧美日韩精品 | 久久九九精品99国产精品| 久久久久久久国产免费看| 久久91亚洲人成电影网站| 久久久久久久久无码精品亚洲日韩| 欧美精品丝袜久久久中文字幕 | 精品久久久无码中文字幕| 国产精品99久久免费观看| 欧美丰满熟妇BBB久久久| 久久久久久久久久久精品尤物| 久久天天躁狠狠躁夜夜不卡 | 久久无码人妻一区二区三区| 久久久久99这里有精品10| 色播久久人人爽人人爽人人片aV| 久久99国产精品99久久| 久久精品草草草| 国产精品美女久久久久网| 久久久久亚洲AV片无码下载蜜桃| 午夜人妻久久久久久久久| 久久99精品久久久久久久不卡| 99久久精品免费看国产一区二区三区 | 99久久99这里只有免费费精品| 亚洲中文字幕无码久久2020|