Using Win32 functions in Visual FoxPro Image Gallery
Code examples:
How to change display settings: screen resolution, screen refresh rate
Enumerating data formats currently available on the clipboard
Custom GDI+ class
Capturing keyboard activity of another application with the Raw Input API (VFP9)
Mapping and disconnecting network drives
Winsock: retrieving directory listing from an FTP server using passive data connection (FTP, port 21)
Winsock: sending email messages (SMTP, port 25)
How to display the Properties dialog box for a file (ShellExecuteEx)
Disk in drive A:
Detecting changes in connections to removable drives (VFP9)
Using Font and Text functions
How to download a file from the FTP server using FtpGetFile
Enumerating raw input devices attached to the system (keyboard, mouse, human interface device)
How to play AVI file on the _screen
Using Video Capture: displaying on FoxPro form frames and previewing video obtained from a digital camera
Using EnumPrinters function to enumerate locally installed printers
Running MSDOS Shell as a child process with redirected input and output (smarter RUN command)
Splash Screen for the VFP application
Subclassing CommandButton control to create BackColor property
Vertical Label control
Creating irregularly shaped FoxPro form using transparency color key
Converting Unicode data from the Clipboard to a character string using a given code page
Creating a console window for Visual FoxPro application
Enumerating network resources
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: 130  
    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 (54.234.231.49)
    1.03 hrs.Solution: 'Extended MessageBox library (FLL) for Visual FoxPro'
     Function: 'SQLNativeSql'
    Function group: 'ODBC API'
     Example: 'Capturing keyboard activity of another application with the Raw Input API (VFP9)'
    1.97 hrs.Example: 'Opening access to the Microsoft Internet functions for the application'
     Example: 'Using Common Controls: the Header Control'
    2.66 hrs.Example: 'Running a regular FoxPro form while main VFP window is minimized'
     Function: 'CeWriteRecordProps'
    Function group: 'Remote Application Programming (RAPI)'
    4.68 hrs.Example: 'Storing screen shot of a form to enhanced metafile (*.emf)'
    4.79 hrs.Example: 'Reading list of folders and files on FTP server'
     Example: 'Detecting changes in connections to removable drives (VFP9)'
    Google
    Advertise here!