Using Win32 functions in Visual FoxPro Image Gallery
Mouse Input
..msdn
DragDetect
GetCapture
GetDoubleClickTime
ReleaseCapture
SetCapture
SetDoubleClickTime
SwapMouseButton
Code examples:
Creating irregularly shaped FoxPro form using transparency color key
How to drag a Form not using its Titlebar or Caption
How to draw custom Window Caption on FoxPro form
Round FoxPro form
Setting the mouse capture to the specified window
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: 171  
    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 (184.72.91.94)
    3 sec.Function: 'setsockopt'
    Function group: 'Windows Sockets 2 (Winsock)'
    7.21 hrs.Example: 'Displaying the drive type value'
    7.57 hrs.Function: 'WriteFile'
     Example: 'Using MessageBeep'
    13.17 hrs.Function: '_lclose'
     Example: 'Adding and deleting Scheduled Tasks using NetScheduleJob API functions'
    Google
    Advertise here!