• <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 閱讀(1864) 評論(0)  編輯 收藏 引用 所屬分類: Win32
             
            久久成人精品| 午夜精品久久久久久中宇| 精品久久久久久99人妻| 久久精品国产亚洲AV不卡| 久久九九免费高清视频| 久久精品视频一| 大香网伊人久久综合网2020| 色综合色天天久久婷婷基地| 一级女性全黄久久生活片免费| 久久久久人妻精品一区二区三区| 国产一级持黄大片99久久| 一本久道久久综合狠狠爱| 亚洲国产精品一区二区久久| 777午夜精品久久av蜜臀| 国产精品无码久久久久| 亚洲国产精品热久久| 69国产成人综合久久精品| 色偷偷久久一区二区三区| 亚洲国产成人精品女人久久久 | 无码人妻久久一区二区三区蜜桃| 天天躁日日躁狠狠久久| 久久偷看各类wc女厕嘘嘘| 亚洲中文字幕无码久久精品1| 久久er国产精品免费观看8| 狠狠色婷婷久久一区二区三区| 亚洲精品tv久久久久久久久| 中文精品久久久久人妻不卡| 久久精品国产亚洲AV影院| 国产A级毛片久久久精品毛片| 久久综合视频网| 国产亚洲美女精品久久久2020| 欧美激情一区二区久久久| 久久人人爽人人爽人人片AV高清| 亚洲精品99久久久久中文字幕| 国产精品gz久久久| 久久久久高潮毛片免费全部播放| 国产精品久久波多野结衣| 久久久久亚洲爆乳少妇无| 狠狠色丁香久久婷婷综| 香蕉久久夜色精品国产2020| 成人久久久观看免费毛片|