📄 cfiledialogst - .mht
字号:
From: <由 Microsoft Internet Explorer 5 保存>
Subject: CFileDialogST - SoftechSoftware
Date: Sun, 4 Mar 2007 09:47:49 +0800
MIME-Version: 1.0
Content-Type: multipart/related;
boundary="----=_NextPart_000_0035_01C75E42.2BA6E980";
type="text/html"
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1506
This is a multi-part message in MIME format.
------=_NextPart_000_0035_01C75E42.2BA6E980
Content-Type: text/html;
charset="Windows-1252"
Content-Transfer-Encoding: quoted-printable
Content-Location: http://www.softechsoftware.it/cfiledialogst.html
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>CFileDialogST - SoftechSoftware</TITLE>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Dwindows-1252">
<META http-equiv=3DContent-Language content=3Den-us>
<META http-equiv=3Dimagetoolbar content=3Dno>
<STYLE>BODY {
FONT-SIZE: 10pt; FONT-FAMILY: Verdana, Arial, Helvetica, sans-serif
}
P {
FONT-SIZE: 10pt; FONT-FAMILY: Verdana, Arial, Helvetica, sans-serif
}
TD {
FONT-SIZE: 10pt; FONT-FAMILY: Verdana, Arial, Helvetica, sans-serif
}
H2 {
FONT-WEIGHT: bold; COLOR: #3366cc
}
H3 {
FONT-WEIGHT: bold; COLOR: #3366cc
}
H4 {
FONT-WEIGHT: bold; COLOR: #3366cc
}
H5 {
FONT-WEIGHT: bold; COLOR: #3366cc
}
H2 {
FONT-SIZE: 13pt
}
H3 {
FONT-SIZE: 12pt
}
H4 {
FONT-SIZE: 10pt; COLOR: black
}
PRE {
FONT-FAMILY: "Courier New", Courier, mono; WHITE-SPACE: pre; =
BACKGROUND-COLOR: #fbedbb
}
CODE {
COLOR: #990000; FONT-FAMILY: "Courier New", Courier, mono
}
</STYLE>
<META content=3D"MSHTML 6.00.2800.1561" name=3DGENERATOR></HEAD>
<BODY leftMargin=3D20>
<P align=3Dcenter><FONT size=3D6>CFileDialogST v1.4<BR></FONT><FONT =
size=3D3>A=20
CFileDialog implementation using APIs</FONT></P>
<TABLE height=3D617 cellSpacing=3D0 cellPadding=3D0 width=3D785 =
border=3D0>
<TBODY>
<TR>
<TD vAlign=3Dtop width=3D547 height=3D455><IMG height=3D451=20
src=3D"http://www.softechsoftware.it/images/cfiledialogst.jpg" =
width=3D721=20
border=3D0></TD></TR>
<TR>
<TD width=3D547 height=3D162>
<TABLE cellSpacing=3D0 cellPadding=3D0 width=3D305 border=3D0>
<TBODY>
<TR>
<TD align=3Dmiddle width=3D42><IMG height=3D16=20
src=3D"http://www.softechsoftware.it/images/led_green.gif" =
width=3D16=20
border=3D0></TD>
<TD width=3D259>Windows NT/2000/XP</TD></TR>
<TR>
<TD align=3Dmiddle width=3D42><IMG height=3D16=20
src=3D"http://www.softechsoftware.it/images/led_green.gif" =
width=3D16=20
border=3D0></TD>
<TD width=3D259>Windows 9x/ME</TD></TR>
<TR>
<TD align=3Dmiddle width=3D42><IMG height=3D16=20
src=3D"http://www.softechsoftware.it/images/led_red.gif" =
width=3D16=20
border=3D0></TD>
<TD width=3D259>Windows CE 3.0</TD></TR>
<TR>
<TD width=3D42></TD>
<TD width=3D259> </TD></TR>
<TR>
<TD align=3Dmiddle width=3D42><IMG height=3D16=20
src=3D"http://www.softechsoftware.it/images/led_green.gif" =
width=3D16=20
border=3D0></TD>
<TD width=3D259>Microsoft Visual C++ 6.0</TD></TR>
<TR>
<TD align=3Dmiddle width=3D42><IMG height=3D16=20
src=3D"http://www.softechsoftware.it/images/led_red.gif" =
width=3D16=20
border=3D0></TD>
<TD width=3D259>Microsoft eMbedded Visual C++ 3.0</TD></TR>
<TR>
<TD width=3D42></TD>
<TD width=3D259> </TD></TR>
<TR>
<TD align=3Dmiddle width=3D42><IMG height=3D32=20
=
src=3D"http://www.softechsoftware.it/images/icon_download.gif"=20
width=3D32 border=3D0></TD>
<TD><A=20
=
href=3D"http://www.softechsoftware.it/download/CFileDialogST.zip">Downloa=
d=20
(211 =
Kb)</A></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE>
<H2>Abstract</H2>
<P><CODE>CFileDialogST</CODE> is a re-implementation of the MFC=20
<CODE>CFileDialog</CODE> class made using the SDK APIs. The first =
valuable=20
feature is the ability to show the new Windows 2000 Open/Save common =
dialog!=20
Also <CODE>CFileDialogST</CODE> includes a function to easly show the =
common=20
dialog used to select a folder. </P>
<H2>Class methods</H2>
<P><B>CFileDialogST(BOOL bOpenFileDialog, LPCTSTR lpszDefExt =3D NULL, =
LPCTSTR=20
lpszFileName =3D NULL, DWORD dwFlags =3D OFN_HIDEREADONLY | =
OFN_OVERWRITEPROMPT,=20
LPCTSTR lpszFilter =3D NULL, CWnd* pParentWnd =3D =
NULL)</B><BR>Constructs a=20
CFileDialogST object.<BR>Most frequently used parameters can be passed =
on the=20
argument list. <PRE>// Parameters:
// [IN] bOpenFileDialog
// Set to TRUE to construct a File Open dialog box or
// FALSE to construct a File Save As dialog box.
// [IN] lpszDefExt
// The default filename extension.
// If the user does not include an extension in the =
Filename edit box,
// the extension specified by lpszDefExt is automatically =
appended
// to the filename.
// If this parameter is NULL, no file extension is =
appended.
// [IN] lpszFileName
// The initial filename that appears in the filename edit =
box.
// If NULL, no filename initially appears
// [IN] dwFlags
// A combination of one or more flags that allow you to =
customize the dialog box.
// [IN] lpszFilter
// A series of string pairs that specify filters you can =
apply to the file.
// If you specify file filters, only selected files will =
appear in the
// Files list box.
// [IN] pParentWnd
// Pointer to the owner window for the dialog box. Can be =
NULL.
//
CFileDialogST(BOOL bOpenFileDialog, LPCTSTR lpszDefExt, LPCTSTR =
lpszFileName, DWORD dwFlags, LPCTSTR lpszFilter, CWnd* pParentWnd)
</PRE><B>CFileDialogST()</B><BR>Constructs a CFileDialogST =
object.<BR>All=20
required parameters must be initialized by hand accessing the m_ofn and=20
m_bOpenFileDialog public members. <B>DoModal()</B><BR>This function =
displays the=20
file selection dialog box and allows the user to make a selection. All =
required=20
fields of the m_ofn public structure must be filled. This can be done =
using the=20
class constructor or accessing directly the structure. Also the public =
variable=20
m_bOpenFileDialog must be set to TRUE to get an open dialog box or to =
FALSE to=20
get a save dialog box. <PRE>// Return value:
// IDOK
// The user has selected a filename.
// IDCANCEL
// The user has closed the dialog without selecting any =
filename.
//
int DoModal()
</PRE><B>CString GetPathName() const</B><BR>This function returns the =
full path=20
of the selected file. <PRE>// Return value:
// A CString object containing the full path of the file.
//
CString GetPathName() const
</PRE><B>CString GetFileName() const</B><BR>This function returns the =
filename=20
of the selected file. <PRE>// Return value:
// A CString object containing the name of the file.
//
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -