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:
Dragging files from Explorer window and dropping them on FoxPro control (requires VFP9)
DragQueryFile
..msdn    Add comment     W32 Constants      Translate this page
Retrieves the names of dropped files that result from a successful drag-and-drop operation.
Code examples:
Dragging files from Explorer window and dropping them on FoxPro control (requires VFP9)
Declaration:
UINT DragQueryFile(
    HDROP hDrop,
    UINT iFile,
    LPTSTR lpszFile,
    UINT cch
);
FoxPro declaration:
DECLARE INTEGER DragQueryFile IN shell32;
    INTEGER  hDrop,;
    INTEGER  iFile,;
    STRING @ lpszFile,;
    INTEGER  cch

Parameters:
hDrop
Identifier of the structure containing the file names of the dropped files.

iFile
Index of the file to query.

lpszFile
Address of a buffer to receive the file name of a dropped file when the function returns.

cch
Size, in characters, of the lpszFile buffer.
Return value:
When the function copies a file name to the buffer, the return value is a count of the characters copied, not including the terminating null character.
My comment:
If the index value is 0xFFFFFFFF, the return value is a count of the dropped files. Note that the index variable itself returns unchanged, and will therefore remain 0xFFFFFFFF.

If the index value is between zero and the total number of dropped files and the lpszFile buffer address is NULL, the return value is the required size, in characters, of the buffer, not including the terminating null character.

See also: DragAcceptFiles, DragFinish.
Word Index links for the DragQueryFile :
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2005-08-05 15:20:48
Modified: 2005-08-05 15:24:11
Visited in last 7 days: 19
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.37), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (54.146.59.207)
4 sec.Function: 'GdipSetClipRectI'
9 sec.Function: 'ConnectToPrinterDlg'
13 sec.Function: 'GdipDrawString'
18 sec.Function: 'GetModuleHandle'
23 sec.Function: 'GdipRotateMatrix'
30 sec.Function: 'CertOpenSystemStore'
35 sec.Function: 'GetAsyncKeyState'
40 sec.Function: 'CreateRectRgn'
47 sec.Gallery
54 sec.
Function group: 'Performance Monitoring'
Google
Advertise here!