Using Win32 functions in Visual FoxPro Image Gallery
Code examples:
Printing text with the Escape function
Using the GetLogicalDriveStrings
Winsock: retrieving information from a host database for a given host name
CryptoAPI: Collection of Providers class
Minimizing all running applications
Obtaining addresses for the adapters on the local computer (Win XP/2003/Vista)
Retrieving list of supported paper names (for example, Letter or Legal) for a given printer
Using SQLBrowseConnect to connect to a data source through a number of iterative calls (SQL Server)
An alternative way of setting Form.Closable to False
Determining whether or not the system is connected to the Internet
GDI+: creating scaled copy of image file
How to display picture stored in enhanced-format metafile (*.emf)
Reading entries from Event logs
Retrieving geometrical parameters of the system desktop window
Using Custom FTP class (DEFINE CLASS ftp As Custom)
Creating hash values for the list of names
Reading and setting system access privileges for the current process
Retrieving the rectangle area where the mouse cursor is confined
Accessing Windows Control Panel from VFP Application
GDI+: reading and writing metadata in JPEG and TIFF files
How to drag a Form not using its Titlebar or Caption
How to find when the application started
How to view icons stored in executable files (Icon Viewer) - II
Simple MAPI: how to pick an email recipient from Outlook Express address book
Retrieving the rectangle area where the mouse cursor is confined

User rating: 0/10 (0 votes)
Rate this code sample:
  • ~
More code examples    Listed functions    Add comment     W32 Constants      Translate this page Printer friendly version of this code sample
 
DECLARE INTEGER GetClipCursor IN user32 STRING @lpRect
 
* points to a RECT structure (four DWORDs - 16 bytes) 
lpRect = REPLICATE(Chr(0), 16)
= GetClipCursor(@lpRect)
 
? "left:  ", buf2dword(SUBSTR(lpRect, 1,4))
? "top:   ", buf2dword(SUBSTR(lpRect, 5,4))
? "right: ", buf2dword(SUBSTR(lpRect, 9,4))
? "bottom:", buf2dword(SUBSTR(lpRect, 13,4))
 
? "SYSMETRIC():", SYSMETRIC(1), "x", SYSMETRIC(2)
 
FUNCTION buf2dword(cBuffer)
RETURN Asc(SUBSTR(cBuffer, 1,1)) + ;
    BitLShift(Asc(SUBSTR(cBuffer, 2,1)), 8) +;
    BitLShift(Asc(SUBSTR(cBuffer, 3,1)), 16) +;
    BitLShift(Asc(SUBSTR(cBuffer, 4,1)), 24)
 
 
 

User rating: 0/10 (0 votes)
Rate this code sample:
  • ~
614 bytes  
Created: 2001-07-30 12:00:00  
Modified: 2006-01-22 12:56:07  
Visits in 7 days: 68  
Listed functions:
GetClipCursor
Printer friendly API declarations
My comment:
In most cases the coordinates returned are the current display resolution.

Use this function to save the original values before changing them.
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 (72.44.48.122)
4 sec.Function: 'IsMenu'
Function group: 'Menu'
3.96 hrs.Function: 'waveOutSetVolume'
 Function: 'EnumClipboardFormats'
5.22 hrs.Example: 'Enumerating Processes -- WinNT'
12.43 hrs.Function: 'if_indextoname'
 Example: 'Storing content of the Clipboard to a bitmap file'
12.55 hrs.Function: 'waveOutGetNumDevs'
Function group: 'Windows Multimedia'
 Function: 'GetOEMCP'
Function group: 'National Language Support'
12.66 hrs.Example: 'How to copy the image of a form to the Clipboard using Bitmap API functions'
 Example: 'Finding parameters for the region specified'
Google
Advertise here!