Using Win32 functions in Visual FoxPro Image Gallery
Code examples:
Accessing examples contained in this reference from a VFP application
How to retrieve number of objects in the Recycle Bin
Obtaining information about all user accounts on a server (WinNT only)
Retrieving the name and type of all available RAS-capable devices
Retrieving the name of the primary domain controller (PDC) and join status information (NT/2000/XP)
Round FoxPro form
Disabling drawing in the VFP form
Displaying printer-properties Property Sheet for the specified printer
Retrieving country-specific dialing information from the Windows Telephony list of countries
Setting the date and time that a file was created
The DetectAutoProxyUrl function identifies the auto-config script location
Winsock: reading and setting socket options
Converting a hexadecimal string to an integer
How to control Adobe Reader 9.0 (SDI mode) from VFP application
How to find which fonts Windows uses for drawing captions, menus and message boxes
Using named pipes for interprocess communication
Winsock: resolving an address to a host name
Yet another modal dialog: now HTML-based
Drawing standard Windows icons
How to download this reference`s archive through WinInet functions using InternetOpenUrl
How to make the caption of a VFP application flashing in the Windows task bar
Locking the workstation
Moving shortcut to a specified position on the Windows Desktop
Converting an integer value to a hexadecimal string
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: 91  
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 (23.22.212.158)
3.38 hrs.Function: 'GetSysColorBrush'
Function group: 'Brush'
3.39 hrs.Example: 'Storing screen shot of a form to bitmap file'
 Example: 'Using IsChild() for testing ThisForm.ShowWindow property'
4.65 hrs.Example: 'How to retrieve information about a cache entry (Internet Explorer)'
 Example: 'How to control Adobe Reader 9.0 (SDI mode) from VFP application'
4.66 hrs.Example: 'Using Video Capture: displaying on FoxPro form frames and previewing video obtained from a digital camera'
18.72 hrs.Example: 'WAV file recorder'
23.22 hrs.Example: 'GDI+: Color Transparency'
1 day(s)Example: 'Minimizing all running applications'
 Example: 'Establishing connection using the SQLDriverConnect'
Google
Advertise here!