• <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 標(biāo)簽:

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

            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 閱讀(1875) 評論(0)  編輯 收藏 引用 所屬分類: Win32
             
            热综合一本伊人久久精品| 日韩人妻无码一区二区三区久久| 久久久久99精品成人片欧美| 亚洲午夜久久久影院| 久久精品国产亚洲AV忘忧草18| 久久婷婷五月综合97色直播| 热久久国产欧美一区二区精品| 亚洲婷婷国产精品电影人久久| 无码任你躁久久久久久老妇| 18禁黄久久久AAA片| 久久热这里只有精品在线观看| 热re99久久6国产精品免费| 久久狠狠高潮亚洲精品| 99久久综合狠狠综合久久止| 国产成人久久精品二区三区| 欧美性猛交xxxx免费看久久久| 一97日本道伊人久久综合影院| 久久久久久久久久久精品尤物| 久久综合香蕉国产蜜臀AV| 久久精品国产91久久麻豆自制| 久久精品亚洲乱码伦伦中文| 久久天天躁夜夜躁狠狠躁2022| 久久久久久久久无码精品亚洲日韩| 精品久久久久久亚洲精品| 久久嫩草影院免费看夜色| 欧美伊人久久大香线蕉综合| 精品人妻久久久久久888| 欧美午夜A∨大片久久| 国产成人久久AV免费| 久久久久国产成人精品亚洲午夜| 国产色综合久久无码有码| 婷婷综合久久中文字幕| 亚洲欧美另类日本久久国产真实乱对白| 久久香蕉国产线看观看精品yw| 久久精品成人| 狠狠色丁香婷婷综合久久来 | 99久久精品这里只有精品| 久久久久久免费视频| 嫩草影院久久国产精品| 成人综合久久精品色婷婷| 大香网伊人久久综合网2020|