如果是大写,如何改为小写!

解决方案 »

  1.   

    imeMode:imDisable   Shut down the IME. imDisable has no effect on Chinese, Taiwanese, or Korean IMEs.
    imClose   Close the IME conversion window, but leave the IME running in the background. The IME can be reactivated by a hot key combination.
    imOpen   Open the IME conversion window. The conversion mode is the last conversion mode used by the IME.
    imDontCare   Launch the IME if it is disabled. The conversion mode is the last conversion mode used by the IME.
    imSAlpha   Open the IME conversion window and set the conversion mode to accept single-width Roman alphabet input.imAlpha   Open the IME conversion window and set the conversion mode to accept double-width Roman alphabet input.
    imHira   Open the IME conversion window and set the conversion mode to double-width Hiragana. imHira is only available for Japanese IMEs.
    imSKata   Open the IME conversion window and set the conversion mode to single-width Katakana (Hankaku Katakana). imSKata is only available for Japanese IMEs.
    imKata   Open the IME conversion window and set the conversion mode to double-width Katakana (Zenkaku Katakana). imKata is only available for Japanese IMEs.imChinese Open   the IME conversion window and set the conversion mode to double-width Chinese. imChinese is only available for Chinese IMEs.
    imSHanguel   Open the IME conversion window and set the conversion mode to single-width Hanguel. imSHanguel is only available for Korean IMEs.
    imHanguel Open   the IME conversion window and set the conversion mode to double-width Hanguel. imHanguel is only available for Korean IMEs.
      

  2.   

    判断Caps键的状态可以用API:GetKeyStateSHORT GetKeyState(    int nVirtKey  // virtual-key code
       );
     ParametersnVirtKeySpecifies a virtual key. If the desired virtual key is a letter or digit (A through Z, a through z, or 0 through 9), nVirtKey must be set to the ASCII value of that character. For other keys, it must be a virtual-key code. 
    If a non-English keyboard layout is used, virtual keys with values in the range ASCII A through Z and 0 through 9 are used to specify most of the character keys. For example, for the German keyboard layout, the virtual key of value ASCII O (0x4F) refers to the "o" key, whereas VK_OEM_1 refers to the "o with umlaut" key.  Return ValuesIf the function succeeds, the return value specifies the status of the given virtual key. If the high-order bit is 1, the key is down; otherwise, it is up. If the low-order bit is 1, the key is toggled. A key, such as the CAPS LOCK key, is toggled if it is turned on. The key is off and untoggled if the low-order bit is 0. A toggle key's indicator light (if any) on the keyboard will be on when the key is toggled, and off when the key is untoggled.