• <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
             
            国产亚洲精久久久久久无码| 日本久久久精品中文字幕| 区久久AAA片69亚洲| 一本色道久久99一综合| 久久免费国产精品一区二区| 亚洲国产成人久久综合野外| 久久99精品久久久久子伦| 色综合久久最新中文字幕| 一级做a爰片久久毛片毛片| av无码久久久久久不卡网站| 无码精品久久一区二区三区| 精品综合久久久久久888蜜芽| 久久本道久久综合伊人| 久久精品国产免费| 2020久久精品亚洲热综合一本| 亚洲国产二区三区久久| 蜜臀久久99精品久久久久久小说| 久久久久久无码国产精品中文字幕 | 久久亚洲欧美日本精品| 久久人妻无码中文字幕| 香蕉久久一区二区不卡无毒影院 | 久久WWW免费人成一看片| 九九久久精品国产| 久久精品国产影库免费看| 日韩精品久久久久久免费| 天堂无码久久综合东京热| 久久人妻少妇嫩草AV无码蜜桃 | 无码任你躁久久久久久老妇| 亚洲国产精品一区二区久久| 国内精品九九久久久精品| 久久精品国产亚洲AV无码娇色| 三级三级久久三级久久| 中文成人无码精品久久久不卡| 热久久国产欧美一区二区精品| 久久久久人妻一区精品| 久久精品免费大片国产大片| 久久99精品九九九久久婷婷| 久久国产综合精品五月天| 亚洲国产成人久久综合碰| 狠狠色丁香久久婷婷综合图片 | 亚洲精品97久久中文字幕无码|