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
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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.
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

For the answer look at the following URL:

or You can look in


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
System Programming

From novice to tech pro — start learning today.