Using Win32 functions in Visual FoxPro Image Gallery
Window Procedure
Code examples:
Adding user-defined items to the Control Menu of VFP form (requires VFP9)
Capturing keyboard activity of another application with the Raw Input API (VFP9)
Customizing the frame of top-level form: removing the standard frame (VFP9, Vista)
Detecting changes in connections to removable drives (VFP9)
Displaying hypertext links with the SysLink control (VFP9, Comctl32.dll)
Displaying icons in the system tray (VFP9)
Dragging files from Explorer window and dropping them on FoxPro control (requires VFP9)
How to block the PrintScreen key
How to disable the Windows Clipboard (VFP9)
How to hot-track menu item selection in top-level form (requires VFP9)
Monitoring clipboard content changes (VFP9)
Switching between keyboard layouts
Transparent Menu Class (requires VFP9)
Using FoxTray ActiveX control: System Tray Icon and menu attached to VFP form
Using Month Calendar Control (VFP9, Comctl32.dll)
Using WM_COPYDATA for interprocess communication (VFP9)
Switching between keyboard layouts

User rating: 9.33/10 (3 votes)
Rate this code sample:
  • ~
More code examples    Listed functions    Add comment     W32 Constants      Translate this page Printer friendly version of this code sample
click to open
Before you begin:
The form in this code sample displays input languages available for the current process and allows switching between them.

In VFP9, this form also tracks input language changes initiated by a hot key or via Windows Taskbar. A form must have the keyboard focus to immediately reflect a change in input language.

See also:

  • LanguageBar ActiveX control

  • Saving available locale records into a cursor
  • Retrieving national language settings
  • Capturing keyboard activity of another application using the Raw Input API
      Members area. Log in to view this example.
      User name:
      Forgot your password?
      Sign up for
    the Membership

    User rating: 9.33/10 (3 votes)
    Rate this code sample:
    • ~
    4391 bytes  
    Created: 2002-02-08 21:32:59  
    Modified: 2011-03-24 10:34:21  
    Visits in 7 days: 163  
    Listed functions:
    Printer friendly API declarations
    My comment:
    The keyboard layout status, if any shown in the taskbar, reflects the layout selection made on the form.

    The name of the input locale identifier (keyboard layout) is a string composed of the hexadecimal value of the language identifier (low word) and a device identifier (high word).

    For example, English (United States) layout has a language identifier of 0x0409, so this layout is named "00000409". The variants of it (such as the Dvorak layout) are named "00010409", "00020409", and so on.

    The indentifiers in the list correspond to the current set of input locales used by the system. The LoadKeyboardLayout function activates selected input locale identifier.

    * * *
    List of Locale IDs, Input Locale, and Language Collection
    Word Index links for this example:
    Translate this page:
      Spanish    Portuguese    German    French    Italian offers instant, free translations of text or web pages.
    User Contributed Notes:
    Rovshan | 2005-10-25 16:17:11
    Thank you for this site.
    Pavel | 2007-04-05 08:14:11
    It's just what I looked for

    Copyright 2001-2018 News2News, Inc. Before reproducing or distributing any data from this site please ask for an approval from its owner. Unless otherwise specified, this page is for your personal and non-commercial use. The information on this page is presented AS IS, meaning that you may use it at your own risk. Microsoft Visual FoxPro and Windows are trade marks of Microsoft Corp. All other trademarks are the property of their respective owners. 

    Privacy policy
    Credits: PHP (4.4.9), an HTML-embedded scripting language, MySQL (5.6.39), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
    Last Topics Visited (
    19 sec.Function: 'GetTempFileName'
    Function group: 'File Management'
    37 sec.
    1 min.
    Function group: 'Network Management'
    1.33 min.Example: 'Class for sound recording'
    1.65 min.Example: 'Detecting changes in connections to removable drives (VFP9)'
    1.98 min.Function: 'CeSeekDatabase'
    Function group: 'Remote Application Programming (RAPI)'
    2.27 min.Function: 'GetProductInfo'
    Function group: 'System Information'
    2.57 min.Articles
    2.88 min.Function: 'UnregisterHotKey'
    Function group: 'Keyboard Input'
    3.2 min.
    Advertise here!