• <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
             
            热99re久久国超精品首页| 欧美777精品久久久久网| 久久精品久久久久观看99水蜜桃| 久久综合亚洲色一区二区三区| 人人狠狠综合久久88成人| 国产99久久久久久免费看| 国产精品99久久久久久宅男小说| 97久久精品人妻人人搡人人玩| 久久强奷乱码老熟女网站| 人妻精品久久无码区| 日本加勒比久久精品| 国产成人精品久久免费动漫| 无码乱码观看精品久久| 久久亚洲国产欧洲精品一| 欧洲人妻丰满av无码久久不卡| 久久人人爽人人澡人人高潮AV | 中文字幕一区二区三区久久网站| 亚洲伊人久久综合中文成人网| 久久www免费人成看片| 大香网伊人久久综合网2020| 人妻无码αv中文字幕久久琪琪布| 久久久久无码中| 99久久国产综合精品网成人影院| 丰满少妇高潮惨叫久久久| 无码AV波多野结衣久久| 亚洲欧美国产日韩综合久久| 久久福利片| 欧美久久一区二区三区| 久久九色综合九色99伊人| 国产精品成人99久久久久 | 精品国产乱码久久久久久郑州公司| 亚洲国产天堂久久综合| 性做久久久久久久久| 久久男人AV资源网站| 人妻少妇精品久久| 亚洲精品第一综合99久久| 国产精品久久婷婷六月丁香| 青青草原综合久久大伊人| 久久无码AV中文出轨人妻| 亚洲成色www久久网站夜月| 亚洲乱码中文字幕久久孕妇黑人|