Using Win32 functions in Visual FoxPro Image Gallery
Window Procedure
..msdn
CallWindowProc
DefWindowProc
WindowProc
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
Versions:
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:
      Password:
     
     
      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: 142  
    Listed functions:
    ActivateKeyboardLayout
    CallWindowProc
    GetKeyboardLayout
    GetKeyboardLayoutList
    GetKeyboardLayoutName
    GetWindowLong
    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  
    FreeTranslation.com 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
    Thanks!
    It's just what I looked for

    Copyright 2001-2017 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.38), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
    Last Topics Visited (54.162.139.105)
    4 sec.Function: 'GetTempFileName'
    Function group: 'File Management'
    8 sec.Function: 'GdipTranslateMatrix'
    Function group: 'GDI+ Matrix'
    12 sec.Function: 'GetWindowLong'
    Function group: 'Window Class'
    16 sec.
    Function group: 'Dialog Box'
    20 sec.Function: 'InternetCloseHandle'
    Function group: 'Internet Functions (WinInet)'
    24 sec.Example: 'How to retrieve the number of objects stored in the Recycle Bin'
    29 sec.Function: 'CryptGetHashParam'
    Function group: 'Cryptography Reference'
    33 sec.Function: 'CryptHashData'
    Function group: 'Cryptography Reference'
    38 sec.Function: 'mmioAscend'
    Function group: 'Windows Multimedia'
    41 sec.Example: 'Obtaining names of local and global groups for current user (WinNT/XP/2K)'
    Google
    Advertise here!