Using Win32 functions in Visual FoxPro Image Gallery
Code examples:
How to print picture stored in enhanced-format metafile (*.emf)
Creating a console window for Visual FoxPro application
How to detect if additional monitor is connected and active
How to display a user-defined icon in the MessageBox dialog
Drawing a window caption using the DrawCaption routine
How to play AVI file on the _screen
How to put a vertical text scrolling on the form (a movie cast)
Scanning the hierarchy of child windows down from the main VFP window
Transparent Menu Class (requires VFP9)
How to ping a remote site using ICMP API calls
How to print FoxPro form -- II
Starting an external application in VFP using WinExec
Storing content of the Clipboard to a bitmap file
How to create non-blocking Winsock server
Obtaining a handle to the desktop associated with the calling thread
Reading and setting the priority class values for the current process and thread
Using Month Calendar Control (VFP9, Comctl32.dll)
How to create MD-5 and SHA-1 hash values from a string
Running MSDOS Shell as a child process with redirected input and output (smarter RUN command)
Starting external program from VFP and waiting for its termination
Detecting changes in connections to removable drives (VFP9)
Drawing icons associated with the VFP main window
GDI+: saving image of FoxPro form to graphics file (BMP, GIF, JPG, PNG, TIF)
Custom HttpRequest class (WinINet)
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: 119  
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 (50.16.36.153)
4 sec.Example: 'Validating the heap of the calling process'
6.53 min.Example: 'How to change the name and the size of the font in the MessageBox dialog'
6.62 min.Example: 'Minimizing all running applications'
6.68 min.Function: 'GetObjectType'
Function group: 'Device Context'
1.57 hrs.Example: 'How to make a VFP form fading out when released (GDI version)'
3.12 hrs.Function: 'CreateProcessAsUser'
Function group: 'Process and Thread'
4.58 hrs.Example: 'How to delete IE cookies, clear IE history and delete files in Temporary Internet Files directory'
 Example: 'Encapsulating access to the Windows Services in a class'
4.8 hrs.Function: 'AVIStreamLength'
Function group: 'Windows Multimedia'
 Example: 'Extensible Storage Engine class library'
Google
Advertise here!