• <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 閱讀(1864) 評(píng)論(0)  編輯 收藏 引用 所屬分類: Win32
             
            亚洲国产成人久久精品99| 国产一区二区精品久久| 热RE99久久精品国产66热| 亚洲欧美精品一区久久中文字幕| 久久97久久97精品免视看秋霞| 一本久久综合亚洲鲁鲁五月天亚洲欧美一区二区 | 久久精品亚洲一区二区三区浴池 | 久久无码人妻一区二区三区| 久久久久99精品成人片欧美| 国产精品成人99久久久久 | 久久人人爽人人爽人人片AV不| 99久久99这里只有免费费精品| 久久亚洲中文字幕精品一区| av无码久久久久不卡免费网站| 久久人人爽人人爽人人片AV麻豆 | 久久亚洲熟女cc98cm| 91久久精品国产91性色也| 无码超乳爆乳中文字幕久久| 久久国产乱子伦精品免费午夜| 麻豆亚洲AV永久无码精品久久| 欧美久久亚洲精品| 99久久精品国产一区二区| 久久久久亚洲av无码专区喷水| yy6080久久| 亚洲欧洲久久av| 热久久视久久精品18| 婷婷久久综合九色综合绿巨人| 国内精品久久久久国产盗摄| 久久99国产精品99久久 | 一级女性全黄久久生活片免费 | 久久亚洲中文字幕精品一区| 99久久精品国产毛片| 91精品国产高清久久久久久91| 久久久一本精品99久久精品66| 久久天天躁狠狠躁夜夜躁2014| 人妻系列无码专区久久五月天| 久久久久99精品成人片三人毛片| 精品综合久久久久久88小说| 久久久久久极精品久久久| 伊人久久成人成综合网222| 亚洲国产精品无码久久青草|