CFileDialog::GetIFileDialogCustomize

检索指向特定 CFileDialog的内部COM对象。

IFileDialogCustomize* GetIFileDialogCustomize();

返回值

对内部COM对象的指针 CFileDialog的。 您应当正确释放此指针。

备注

仅使用此功能在具有 bVistaStyle 设置为 true对象的 Windows Vista 下。 如果使用此功能,当 bVistaStyle 是 false,它在发布模式下将返回 NULL,并引发断言调试模式。

有关 IFileDialogCustomize 接口的更多信息,请参见 IFileDialogCustomize

示例

此示例检索内部COM对象。 若要运行此代码示例,必须对其进行编译 Windows Vista下。

// Get the interface pointer
IFileDialogCustomize * customDlgPtr = m_myFileDialogPtr->GetIFileDialogCustomize();

// Make sure that it is not null
if ( customDlgPtr != NULL )
{
    //
    // Perform any interface functionality here
    //

    // Release the pointer
    customDlgPtr->Release();
}

要求

**最少量必需的操作系统:**Windows Vista

标头: afxdlgs.h

请参见

参考

CFileDialog选件类

层次结构图

CFileDialog::GetIFileOpenDialog

CFileDialog::GetIFileSaveDialog