Adding Multiselection to TFileOpenDialog

Date: 7 February 1997
Author: Brice VIDAL
Platform: 32 bits environment
In memory of: Carcass

Overview



 

Setting the OFN_ALLOWMULTISELECT flag

#include <owl/opensave.h>

TOpenSaveDialog::TData FileData;

FileData.Flags = OFN_EXPLORER | OFN_ALLOWMULTISELECT; 

Managing the result

Then starts the real work.

#include <dir.h>
#include <cstring.h>

if(TFileOpenDialog(this, FileData).Execute()==ID_OK)
{
 

}

Here's an example of an OpenFile() function:

void OpenFile(const char* fileName = 0)
{
    if(!fileName)
        // the FileData.FileName contains the file name

That's it, you now have a multifile open dialog box ! 

Now if you need more information, jump to the advanced page.