Using Win32 functions in Visual FoxPro Image Gallery
Code examples:
How to play a waveform sound (a WAV file in particular)
How to test file attributes (key method for FileExists and DirectoryExists routines)
Obtaining window class name for the main VFP window
Reading current hardware profile
Saying "Hello World!" with VFP and WinAPI
Using Shell for performing operations on files
Retrieving geometrical parameters of the system desktop window
Retrieving the path of the printer-driver directory and printer-processor directory
Extended OS Version info
One more way to retrieve environment strings
Pocket PC: creating new database in the Object Store and copying Contacts Database records into it
Pocket PC: modifying keys in the System Registry
Reading keys in the specified section of the Win.ini file
Creating two-byte hashes for a list of URLs
Retrieving current user for the process
GDI+: enumerating fonts installed on the system
Reading STARTUPINFO structure for the current VFP session
GDI+: loading image file, drawing on it, saving the result to another file
WAV file recorder
Basic Volume information
Enumerating Performance Counters
Retrieving statistics for the TCP protocol running on the local computer
Who is the first in viewing the Clipboard
Converting strings between ANSI and OEM
Hiding mouse cursor

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 ShowCursor IN user32 INTEGER bShow
 
PROCEDURE _hide
    DO WHILE ShowCursor(0) >= -1
        DOEVENTS
    ENDDO
 
PROCEDURE _show
    DO WHILE ShowCursor(1) < 0
        DOEVENTS
    ENDDO
 
 
 
 

User rating: 0/10 (0 votes)
Rate this code sample:
  • ~
194 bytes  
Created: 2001-09-07 12:00:00  
Modified: 2008-01-05 11:41:32  
Visits in 7 days: 65  
Listed functions:
ShowCursor
Printer friendly API declarations
My comment:
In Visual FoxPro the SET MOUSE setting is ignored. VFP8 often restores hidden mouse cursor automatically. So this API function may not be useful. The MousePointer property, that applies to many VFP controls including the Form, hides the pointer when set to 13
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 (50.19.155.235)
1.16 hrs.Example: 'Moving shortcut to a specified position on the Windows Desktop'
1.27 hrs.Function: 'GetPrivateProfileSectionNames'
Function group: 'Registry'
3.63 hrs.Example: 'Accessing LSA Policy object (Local Security Authority)'
 Example: 'Reading security permissions for NTFS files and folders'
 Function: 'GlobalAlloc'
12.01 hrs.Function: 'PathIsNetworkPath'
13.94 hrs.Example: 'Obtaining the bounding rectangle for the specified device context'
16.59 hrs.Example: 'GDI+: rotating images using matrix transformations'
19.68 hrs.Example: 'Creating irregularly shaped FoxPro form using transparency color key'
21.84 hrs.Function: 'NetScheduleJobDel'
Function group: 'Network Management'
Google
Advertise here!