• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 544
  • Last Modified:

CFileDialog - multi-select

hi all,
I inherited CFileDialog, and overloaded "OnFileNameChange". since I do some operations on each file that is clicked (not chosen), I need to know if a single file was picked or multi files were picked.
10x, RanBN
0
RanBN
Asked:
RanBN
1 Solution
 
naveenkohliCommented:
You canmake use of GetStartPosition and GetNextPathName calls to check if there are more than one files selected or not. If there is only one file selected then the call GetNextPathName will return NULL in the POSITION parameter.
0
 
RanBNAuthor Commented:
I would like to get info whether I'm in a multi-select mode in the dialog life cycle, and not after the DoModal ends. I would like to know it in method OnFileNameChange().
10x, Ran
0
 
cyberfrankCommented:
Hi!

For the answer look at the following URL:
http://codeguru.developer.com/dialog/MultiFileSelect.shtml

or You can look in
http://codeguru.developer.com/dialog/index.shtml

CF
0

Featured Post

[Webinar] Improve your customer journey

A positive customer journey is important in attracting and retaining business. To improve this experience, you can use Google Maps APIs to increase checkout conversions, boost user engagement, and optimize order fulfillment. Learn how in this webinar presented by Dito.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now