Using Win32 functions in Visual FoxPro Image Gallery
Code examples:
Retrieving the state of your Internet connection
String representation for disk or memory capacity
Clipping mouse cursor area
Listing INF files in a specified directory
Retrieving graphic capabilities of default printer
Using GetSysColor
Using the Semaphore object to allow only one instance of VFP application running
WAV file recorder
Changing pitch and speed of a wave file
Enhanced GetFont dialog
One more way to retrieve environment strings
Pocket PC: creating backup for the System Registry
Pocket PC: enumerating mounted database volumes and databases in the Object Store
Removing FTP directory
Retrieving the command line for the VFP session
Retrieving the priority class for the current process
Time in milliseconds represented as string (e.g. 1 hour 24 min 36 sec)
Using GetBinaryType (WinNT only) to determine the type of an executable file
Enumerating the subkeys of a user-specific key
Finding parameters for the region specified
The SQLGetProp() creates a bridge between Visual FoxPro and the ODBC API
Another way to go online (it is not about choosing an ISP)
Current System information
How to drag a Form not using its Titlebar or Caption
Setting the mouse capture to the specified window

User rating: 10/10 (1 votes)
Rate this code sample:
  • ~
More code examples    Listed functions    Add comment     W32 Constants      Translate this page Printer friendly version of this code sample
Before you begin:
See also:
  • How to Move a Form not using its Titlebar or Caption
  •  
    DO declare
     
    * testing the capture
    ? GetCapture()
     
    * setting the mouse capture to the window with the keyboard focus
    ? SetCapture(GetFocus())
     
    * testing the capture
    ? GetCapture()  && returns a window handle
     
    = ReleaseCapture()
     
    PROCEDURE declare
        DECLARE INTEGER SetCapture IN user32 INTEGER hWindow
        DECLARE INTEGER GetCapture IN user32
        DECLARE INTEGER ReleaseCapture IN user32
     
        DECLARE INTEGER GetActiveWindow IN user32
        DECLARE INTEGER GetFocus IN user32
     

    User rating: 10/10 (1 votes)
    Rate this code sample:
    • ~
    478 bytes  
    Created: 2002-02-25 23:41:56  
    Modified: 2009-01-26 14:09:20  
    Visits in 7 days: 81  
    Listed functions:
    GetActiveWindow
    GetCapture
    GetFocus
    ReleaseCapture
    SetCapture
    Printer friendly API declarations
    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:
    There are no notes on this subject.


    Copyright © 2001-2013 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.1.55-log), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
    Last Topics Visited (23.22.100.67)
    2.07 hrs.Function: 'ClosePrinter'
    Function group: 'Printing and Print Spooler'
     Example: 'How to enumerate terminal servers within the specified Windows domain'
    2.08 hrs.Function: 'WinHttpSendRequest'
    Google
    Advertise here!