CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Thread: MFC application changes keyboard language.

  1. #1
    Join Date
    Dec 2014
    Posts
    7

    MFC application changes keyboard language.

    Hey..
    I am working on an application which uses MFC components , the problem when it starts it changes the keyboard language to English US automatically . Any idea Why is that ? and How to prevent it from changing the language ?
    Thanks..

  2. #2
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Hanover Germany
    Posts
    19,725

    Re: MFC application changes keyboard language.

    Quote Originally Posted by Artista View Post
    Hey..
    I am working on an application which uses MFC components , the problem when it starts it changes the keyboard language to English US automatically . Any idea Why is that ? and How to prevent it from changing the language ?
    Thanks..
    I don't know any MFC class/component that can change keyboard layout. But some of Win32 API function can.
    Does your application call some of the Keyboard Input Functions? For instance the ActivateKeyboardLayout?
    Victor Nijegorodov

  3. #3
    Join Date
    Dec 2014
    Posts
    7

    Re: MFC application changes keyboard language.

    Quote Originally Posted by VictorN View Post
    I don't know any MFC class/component that can change keyboard layout. But some of Win32 API function can.
    Does your application call some of the Keyboard Input Functions? For instance the ActivateKeyboardLayout?
    Thanks Victor .
    I did solve the problem using getkeyboardlayoutlist() then ActivateKeyboardLayout().
    I just check every language in my languagebar then checks the app language and re-change it.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Windows Mobile Development Center


Click Here to Expand Forum to Full Width




On-Demand Webinars (sponsored)