Link to home
Start Free TrialLog in
Avatar of RanBN
RanBN

asked on

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
Avatar of naveenkohli
naveenkohli

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.
Avatar of RanBN

ASKER

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
ASKER CERTIFIED SOLUTION
Avatar of cyberfrank
cyberfrank

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial