На главную Наши проекты:
Журнал   ·   Discuz!ML   ·   Wiki   ·   DRKB   ·   Помощь проекту
ПРАВИЛА FAQ Помощь Участники Календарь Избранное RSS
msm.ru
! Правила раздела Visual C++ / MFC / WTL (далее Раздела)
1) На Раздел распространяются все Правила Форума.
2) Перед тем, как создать новый топик, убедитесь, что Вы читали Правила создания тем в Разделе.
3) Вопросы, не связанные с программированием (настройки MS Visual Studio, книги, библиотеки и т.д.),
обсуждаются в разделе C/C++: Прочее
4) Вопросы разработки .NET (Windows Form, C++/CLI и т.п.) приложений на Visual C++/C# обсуждаются в разделе .NET.
5) Нарушение Правил может повлечь наказание со стороны модераторов.

Полезные ссылки:
user posted image FAQ Раздела user posted image Обновления для FAQ Раздела user posted image Поиск по Разделу user posted image MSDN Library Online
Модераторы: ElcnU
  
> Смена Шрифта
    Как установить (програмно) поддержку испанского
    языка и переключится на него.
      Ну, устанавливать програмно другой язык это изврат.
      Можно ведь мастдайными средствами.
      Можно конечно и так:

      SetKeyboardState
      The SetKeyboardState function copies a 256-byte array of keyboard key states into the calling thread's keyboard input-state table. This is the same table accessed by the GetKeyboardState and GetKeyState functions. Changes made to this table do not affect keyboard input to any other thread.

      BOOL SetKeyboardState(
       LPBYTE lpKeyState   // array of virtual-key codes
      );
      Parameters
      lpKeyState
      [in] Pointer to a 256-byte array that contains keyboard key states.
      Return Values
      If the function succeeds, the return value is nonzero.

      If the function fails, the return value is zero. To get extended error information, call GetLastError.

      Remarks
      Because the SetKeyboardState function alters the input state of the calling thread and not the global input state of the system, an application cannot use SetKeyboardState to set the NUM LOCK, CAPS LOCK, or SCROLL LOCK (or the Japanese KANA) indicator lights on the keyboard. These can be set or cleared using SendInput to simulate keystrokes.

      Windows NT: The keybd_event function can also toggle the NUM LOCK, CAPS LOCK, and SCROLL LOCK keys.

      Windows 95: The keybd_event function can toggle only the CAPS LOCK and SCROLL LOCK keys. It cannot toggle the NUM LOCK key.

      Requirements
       Windows NT/2000: Requires Windows NT 3.1 or later.
       Windows 95/98: Requires Windows 95 or later.
       Header: Declared in Winuser.h; include Windows.h.
       Library: Use User32.lib.

      ////////
      А зачем это надо?

        Спасибо!
        А нужно это потому-что :
        Есть документы не всегда на английском языке.
        И при установке на компы заказчика они должны быть
        читаемы ,а компов заказчика много и везде поставить
        поддержку испанского,французского  и т.д. Просто
        не реально.
          Извини, Muran, но твой ответ СОВСЕМ не в тему. Ф-я используется вовсе не для того. А поддержку испанского языка... Поройся в (MSDN August 2001)->PSDK documentation -> Base Services->International Features->National Language Support Services
          0 пользователей читают эту тему (0 гостей и 0 скрытых пользователей)
          0 пользователей:


          Рейтинг@Mail.ru
          [ Script execution time: 0,0245 ]   [ 16 queries used ]   [ Generated: 2.05.24, 05:25 GMT ]