Using Win32 functions in Visual FoxPro Image Gallery
Shell Functions
..msdn
AssocQueryString
DllGetVersion
DragAcceptFiles
DragFinish
DragQueryFile
DragQueryPoint
FileIconInit
FindExecutable
GetFileNameFromBrowse
GetMenuContextHelpId
GetWindowContextHelpId
InetIsOffline
IsUserAnAdmin
LoadUserProfile
PathMakeUniqueName
PathYetAnotherMakeUniqueName
RealDriveType
RestartDialog
SHAddToRecentDocs
SHBrowseForFolder
SHCreateDirectory
ShellAbout
ShellExecute
ShellExecuteEx
Shell_GetImageLists
Shell_NotifyIcon
SHEmptyRecycleBin
SHFileOperation
SHFormatDrive
SHGetFileInfo
SHGetFolderPath
SHGetPathFromIDList
SHGetSpecialFolderLocation
SHGetStockIconInfo
SHParseDisplayName
SHQueryRecycleBin
SHSimpleIDListFromPath
UnloadUserProfile
WinHelp
Code examples:
Creating an Open dialog box to specify the drive, directory, and name of a file to open (Shell32 version)
GetFileNameFromBrowse
..msdn    Add comment     W32 Constants      Translate this page
This function creates an Open dialog box that lets the user specify the drive, directory, and name of a file to open.
Code examples:
Creating an Open dialog box to specify the drive, directory, and name of a file to open (Shell32 version)
Declaration:
BOOL GetFileNameFromBrowse(
    HWND hwnd,
    LPWSTR pszFilePath,
    UINT cchFilePath,
    LPCWSTR pszWorkingDir,
    LPCWSTR pszDefExt,
    LPCWSTR pszFilters,
    LPCWSTR szTitle
);
FoxPro declaration:
DECLARE INTEGER GetFileNameFromBrowse IN shell32;
    INTEGER  hwnd,;
    STRING @ pszFilePath,;
    LONG     cchFilePath,;
    STRING   pszWorkingDir,;
    STRING   pszDefExt,;
    STRING   pszFilters,;
    STRING   szTitle

Parameters:
hwnd
[in] Handle to the window that owns the dialog box.

pszFilePath
[in] A null-terminated Unicode string that contains a file name used to initialize the File Name edit control.

cchFilePath
[in] The number of characters in pszFilePath, including the terminating null character.

pszWorkingDir
[in] The fully-qualified file path of the initial directory.

pszDefExt
[in] A null-terminated Unicode string that contains the default file extension.

pszFilters
[in] A null-terminated Unicode string that defines the filter.

szTitle
[in] A null-terminated Unicode string that is placed in the title bar of the dialog box.
Return value:
If the user specifies a file name and clicks OK, the return value is TRUE. The buffer that pszFilePath points to contains the full path and file name that the user specifies.
Usage:
IF GetFileNameFromBrowse(GetActiveWindow(),;
    @cFilename, nBufsize,;
    cPath, cExt, cFilter, cTitle) <> 0
    ? cFilename  && unicode
ENDIF
My comment:
Evidently this function is a wrapper around the GetOpenFileName.

Word Index links for the GetFileNameFromBrowse :
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2003-01-07 11:20:36
Modified: 2009-02-06 13:35:19
Visited in last 7 days: 47
User Contributed Notes:
There are no notes on this subject.


Copyright 2001-2017 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.6.38), 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.255.29)
22 sec.Function: 'RegEnumValue'
41 sec.Function: 'GdipGetPageScale'
1.08 min.
Function group: 'Icon'
1.43 min.Function: 'GdipTranslateMatrix'
1.85 min.Function: 'NetScheduleJobAdd'
3.63 min.Function: 'SetFileTime'
Google
Advertise here!