Using Win32 functions in Visual FoxPro Image Gallery
Code examples:
Retrieving list of available disk drives
Simple Window Viewer
Converting command-line string to a set of Unicode argument strings (WinNT only)
Displaying dimmed window behind VFP top-level form
Displaying the associated icons and descriptions for files and folders
How to delete IE cookies, clear IE history and delete files in Temporary Internet Files directory
Obtaining physical parameters for a drive: sectors, clusters, cylinders...
Retrieving the command line for the VFP session
Using the RestartDialog function -- restarting Windows
Disconnecting USB Mass Storage Device programmatically
Displaying printer-properties Property Sheet for the specified printer
Drawing standard Windows icons
How to obtain the number of rows affected by remote UPDATE, INSERT or DELETE statement
Listing INF files in a specified directory
Retrieving names for the registered clipboard formats
Accessing Windows Control Panel from VFP Application
Drawing a rectangle using Windows regular edges and borders
Enumerating the subkeys of a user-specific key
Extended MessageBox Class
Winsock: reading and setting socket options
Accessing examples contained in this reference from a VFP application
Dial the Net Automatically
Get the power status of your laptop computer
How to retrieve network parameters for the local computer (including Host name, Domain name, and DNS Server)
Testing Clipboard functions: emptying the clipboard

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
Versions:
click to open
 
DECLARE INTEGER EmptyClipboard IN user32
DECLARE INTEGER GetActiveWindow IN user32
DECLARE INTEGER CloseClipboard IN user32
DECLARE INTEGER OpenClipboard IN user32 INTEGER hwnd
 
IF OpenClipboard(GetActiveWindow()) <> 0
    = EmptyClipboard()
    = CloseClipboard()  && important
ENDIF
 
 
 

User rating: 0/10 (0 votes)
Rate this code sample:
  • ~
291 bytes  
Created: 2001-07-12 12:00:00  
Modified: 2006-04-19 09:07:28  
Visits in 7 days: 160  
Listed functions:
CloseClipboard
EmptyClipboard
GetActiveWindow
OpenClipboard
Printer friendly API declarations
My comment:
The operation above can be done with much less trouble in VFP code:
_cliptext=""
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.126.92)
4 sec.Function: 'EndPath'
3.64 hrs.Function: 'EndTask'
Function group: 'Window'
4.09 hrs.Example: 'Obtaining names of local and global groups for current user (WinNT/XP/2K)'
 Function: 'CreateProcessAsUser'
 Solution: 'ContextMenu ActiveX Control'
4.22 hrs.Function: 'CeRegOpenKeyEx'
 Example: 'Retrieving geometrical parameters of the system desktop window'
4.77 hrs.
Function group: 'Dialog Box'
4.78 hrs.Example: 'How to empty the Recycle Bin'
8.83 hrs.Example: 'Displaying icons in the system tray (VFP9)'
Language: 'Visual FoxPro'
Google
Advertise here!