Using Win32 functions in Visual FoxPro Image Gallery
Code examples:
The SQLGetProp() creates a bridge between Visual FoxPro and the ODBC API
Using MessageBeep
Converting characters in a URL into corresponding escape sequences and backwards
Displaying standard progress dialog box when copying files
Downloading files from the FTP server using InternetReadFile
How to delete IE cookies, clear IE history and delete files in Temporary Internet Files directory
Initiating Inet connection using a modem
Scanning the hierarchy of child windows down from the main VFP window
Changing pitch and speed of a wave file
Retrieving the User Datagram Protocol (UDP) listener table
Time in milliseconds represented as string (e.g. 1 hour 24 min 36 sec)
Obtaining names and positions for shortcuts located on the Windows Desktop
Starting an external application in VFP using WinExec
The DetectAutoProxyUrl function identifies the auto-config script location
Displaying hypertext links with the SysLink control (VFP9, Comctl32.dll)
How to retrieve list of system DSNs (Data Source Name) with parameters
Opening the Page Setup dialog box to specify the attributes of a printed page
Placing an arbitrary rectangular area of main VFP window on the Clipboard
Retrieveing information about the active window (even if it is not owned by the calling process)
How to release and renew a lease on an IP address previously obtained through Dynamic Host Configuration Protocol (DHCP)
Programmatically removing submenus from VFP main menu
Reading parameters of streams in AVI file
Moving shortcut to a specified position on the Windows Desktop
Pocket PC: custom RAPI class for operating with the System Registry
Creating the Open dialog box to specify the drive, directory, and name of a file to open

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
Before you begin:
The GetFileNameFromBrowse Shell32 function (see another example) provides same functionality with shorter code.



See also:
 
  Members area. Log in to view this example.
 
  User name:
  Password:
 
 
  Forgot your password?
 
  Sign up for
the Membership
 
 


User rating: 0/10 (0 votes)
Rate this code sample:
  • ~
5589 bytes  
Created: 2003-01-02 14:24:34  
Modified: 2011-12-10 09:20:22  
Visits in 7 days: 164  
Listed functions:
CommDlgExtendedError
GetActiveWindow
GetOpenFileName
GlobalAlloc
GlobalFree
GlobalSize
Printer friendly API declarations
My comment:
See also MSDN article: Open and Save As Dialog Boxes.

OFN_NOCHANGEDIR flag is effective for Save As dialog only. It does not prevent the user from changing directories to find a file.
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.180.187)
3.21 hrs.Function: 'GlobalSize'
 Example: 'How to retrieve information about a cache entry (Internet Explorer)'
5.16 hrs.Function: 'FreeEnvironmentStrings'
Function group: 'Process and Thread'
5.54 hrs.Function: 'GdipGetPageScale'
 Function: 'waveInPrepareHeader'
Function group: 'Windows Multimedia'
6.17 hrs.
Function group: 'Security'
 Function: 'VirtualAllocEx'
Function group: 'Memory Management'
13.62 hrs.Function: 'SHEnumKeyEx'
 Example: 'Enumerating printer drivers installed'
1 day(s)Example: 'Memory usage info for current VFP session (WinNT only)'
Google
Advertise here!