Created 2008-03-08 10:53:50 by Nils G. Svedmyr on NILSXP [ Header and license information ]

Class List


Class cvSelectFile_Dialog

Source: VWIN32FH.PKG
Baseclass: OpenDialog


*WvA: 13-01-1999 Created
The Class cSelectFile_Dialog is created to support the function Select_File
This function opens the Windows standard file open dialog and returns the selected
file_name.

Class cvSaveAsDialog

Source: VWIN32FH.PKG
Baseclass: SaveAsDialog



Class cShellFileOperations

Source: VWIN32FH.PKG
Baseclass: Array


Functions

FileOperation String sSource String sDestination Integer iOperation Integer iFlags Returns Integer - Function
This function uses the shell API to perform a file operation on the
files supplied.

sfoRenameFile String sSource String sDestination Returns Integer - Function
Rename a file or folder
Returns a nonzero value if the operation failed.

sfoFormatDisk String sDrive Integer iOptions Returns DWORD - Function
Courtesy Of Steve Walter
Requires Windows 2000 and up according to msdn but it was
in fact available before that as an unpublished API call
a little google search shows that this was already available
in windows 95 and NT
The format is controlled by the dialog interface.
That is, the user must click the OK button To actually Begin the format
the format cannot be started programmatically.
An alternative to this functionality would be to use a controlpanel
http://www.vdf-guidance.com/ContribPage.asp?Page=PKGCLSDFCPLAPP&ContribRecId=93
hWnd = The windows handle of the object from which the format Function
is called.
To Get this,
use: Get Window_Handle Of
For instance, in this app, we're going to use the Report_Panel:
Get Window_Handle Of (Report_Panel(Main(Self))) To hWind
sDrive = The drive letter. At this moment only A and B are valid
iOptions = Format options.
SHFMT_OPT_DEFAULT = Quick format
SHFMT_OPT_FULL = Full Format
SHFMT_OPT_SYSONLY = System only
3 = Full format with system. (unsupported)
Return Values:
SHFMT_ERROR = Error on format or no drive specified.
SHFMT_CANCEL = Format cancelled by user.
SHFMT_NOFORMAT = Drive is not formatable.
*** ATTENTION: This function has been disabled as it doesn't
seem to work, i must have made a silly mistake
somewhere.


Header and license information

This code is part of VDF GUIdance
Visit us @ http://www.vdf-guidance.com
e-Mail us @ info@vdf-guidance.com
VDF GUIdance is a mutual project of
Frank Vandervelpen - Vandervelpen Systems and
Wil van Antwerpen - Antwise Solutions
All software source code should be used <> without any warranty.
*** Windows 32bit file handling wrapper class ***