Using Win32 functions in Visual FoxPro Image Gallery
Code examples:
How to save registry key including its subkeys and values to a file
Minimizing all running applications
Using FrameRgn for displaying system colors
Drawing cursors for the classes defined by the system (preregistered): BUTTON, EDIT, LISTBOX etc.
Drawing icons associated with the VFP main window
GDI+: printing vertical text on VFP reports via generated images (VFP8)
How to get Special Folders paths
How to initiate System shutdown
Retrieving information about MS-DOS device names using QueryDosDevice (WinNT only)
Retrieving the names of all sections in an initialization file
Closing Windows
Displaying OS Memory Status
How to create transparent areas inside a form -- punching holes in the form
Pocket PC: retrieving data from the Contacts Database
Simple MAPI: how to pick an email recipient from Outlook Express address book
URL: splitting into its component parts
Using Path functions from Shell Lightweight Utility APIs (shlapi.dll)
Obtaining heap handles and enumerating memory blocks for the current VFP session (WinNT only)
Retrieving information about the specified icon
Starting a dialog box for connecting to network resources and passing input parameters
How to test file attributes (key method for FileExists and DirectoryExists routines)
Reading data from INI files
Reading virtual key status values and key names
Retrieving the state of your Internet connection
Extracting the name and extension parts of a path string

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 SHORT GetFileTitle IN Comdlg32;
    STRING   lpszFile,;
    STRING @ lpszTitle,;
    INTEGER  cbBuf
 
lpszFile = "c:\Program Files\NetLab\AddressBook.dat"
lpszTitle = SPACE(250)
 
* for this path the return is "addressbook.dat"
 
IF GetFileTitle (lpszFile, @lpszTitle, Len(lpszTitle)) = 0
    lpszTitle = LEFT (lpszTitle, AT(Chr(0),lpszTitle)-1)
    ? lpszTitle
ENDIF
 
 

User rating: 0/10 (0 votes)
Rate this code sample:
  • ~
372 bytes  
Created: 2001-08-24 12:00:00  
Modified: 2001-09-28 16:45:35  
Visits in 7 days: 55  
Listed functions:
GetFileTitle
Printer friendly API declarations
My comment:
The path string should be valid Win32 name. Although that does not mean that the file should exist.
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 (184.72.91.94)
8.21 hrs.Example: 'Setting the mouse capture to the specified window'
 Function: 'setsockopt'
Function group: 'Windows Sockets 2 (Winsock)'
15.42 hrs.Example: 'Displaying the drive type value'
15.78 hrs.Function: 'WriteFile'
 Example: 'Using MessageBeep'
21.38 hrs.Function: '_lclose'
 Example: 'Adding and deleting Scheduled Tasks using NetScheduleJob API functions'
Google
Advertise here!