Messageboxes in other languages

This is a discussion on Messageboxes in other languages within the Windows Programming forums, part of the Platform Specific Boards category; Shouldn't the code below make the buttons in the dialog box be displayed in english? Currently it (still) displays them ...

  1. #1
    Confused Magos's Avatar
    Join Date
    Sep 2001
    Location
    Sweden
    Posts
    3,145

    Messageboxes in other languages

    Shouldn't the code below make the buttons in the dialog box be displayed in english? Currently it (still) displays them in my native language - Swedish...

    Code:
    CONST WORD CURRENT_LANGUAGE = MAKELANGID(LANG_ENGLISH, SUBLANG_ENGLISH_US);
    
    MessageBoxEx(Window, "File has not been saved!\nSave now?", "Message", MB_YESNOCANCEL | MB_ICONINFORMATION, CURRENT_LANGUAGE)
    MagosX.com

    Give a man a fish and you feed him for a day.
    Teach a man to fish and you feed him for a lifetime.

  2. #2
    return 0;
    Join Date
    Jan 2005
    Location
    Netherlands
    Posts
    89
    From MSDN:

    Quote Originally Posted by MSDN
    The buttons are in the language of the system user interface.
    It also says:

    Quote Originally Posted by MSDN
    wLanguageId
    [in] Reserved.
    So I guess the language part of the function isn't implemented yet?

  3. #3
    erstwhile
    Join Date
    Jan 2002
    Posts
    2,227
    CProgramming FAQ
    Caution: this person may be a carrier of the misinformation virus.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Strange loop
    By D@rk_force in forum C++ Programming
    Replies: 22
    Last Post: 12-18-2004, 02:40 PM
  2. Languages dying
    By Zewu in forum A Brief History of Cprogramming.com
    Replies: 31
    Last Post: 07-29-2003, 11:08 AM
  3. Languages
    By KrAzY CrAb in forum A Brief History of Cprogramming.com
    Replies: 23
    Last Post: 02-18-2003, 12:23 PM
  4. Programming Languages
    By DarkViper in forum A Brief History of Cprogramming.com
    Replies: 3
    Last Post: 12-12-2002, 02:28 PM
  5. How can an api be accessed through other languages
    By Shadow12345 in forum Windows Programming
    Replies: 6
    Last Post: 10-21-2002, 08:01 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21