description | title | ms.date | f1_keywords | helpviewer_keywords | ms.assetid | ||||
---|---|---|---|---|---|---|---|---|---|
Learn more about: CMFCPropertyGridFileProperty Class |
CMFCPropertyGridFileProperty Class |
11/04/2016 |
|
|
2bb8b8b4-47fc-4798-bd5e-dc8ea0b4cd9d |
The CMFCPropertyGridFileProperty
class supports a property list control item that opens a file selection dialog box.
class CMFCPropertyGridFileProperty : public CMFCPropertyGridProperty
Name | Description |
---|---|
CMFCPropertyGridFileProperty::CMFCPropertyGridFileProperty | Constructs a CMFCPropertyGridFileProperty object. |
CMFCPropertyGridFileProperty::~CMFCPropertyGridFileProperty |
Destructor. |
Name | Description |
---|---|
CMFCPropertyGridFileProperty::GetThisClass |
Used by the framework to obtain a pointer to the CRuntimeClass object that is associated with this class type. |
CMFCPropertyGridFileProperty::OnClickButton |
(Overrides CMFCPropertyGridProperty::OnClickButton.) |
Header: afxpropertygridctrl.h
Constructs a CMFCPropertyGridFileProperty
object.
CMFCPropertyGridFileProperty(
const CString& strName,
BOOL bOpenFileDialog,
const CString& strFileName,
LPCTSTR lpszDefExt=NULL,
DWORD dwFlags=OFN_HIDEREADONLY|OFN_OVERWRITEPROMPT,
LPCTSTR lpszFilter=NULL,
LPCTSTR lpszDescr=NULL,
DWORD_PTR dwData=0);
strName
[in] The property name.
bOpenFileDialog
[in] TRUE to open an Open File dialog box; FALSE to open a Save File dialog box.
strFileName
[in] The initial file name.
lpszDefExt
[in] A string of one or more file name extensions. The default value is NULL.
dwFlags
[in] Dialog box flags. The default value is a bitwise combination (OR) of OFN_HIDEREADONLY and OFN_OVERWRITEPROMPT.
lpszFilter
[in] A string of one or more file filters. The default value is NULL.
lpszDescr
[in] The property item description. The default value is NULL.
dwData
[in] Application-specific data that is associated with the property item. For example, a 32-bit integer or a pointer to other data. The default value is 0.
For a full list of available flags, see OPENFILENAME structure.
The following example demonstrates how to create an object using the constructor of the CMFCPropertyGridFileProperty
class. This example is part of the Visual Studio Demo sample.
[!code-cppNVC_MFC_VisualStudioDemo#22]
Hierarchy Chart
Classes
CMFCPropertyGridCtrl Class
CMFCPropertyGridProperty Class