Re: GetSaveFileName
- From: "Igor Tandetnik" <itandetnik@xxxxxxxx>
- Date: Thu, 12 Jan 2006 08:16:15 -0500
<bob@xxxxxxxxxxxxxx> wrote in message
news:1137067824.770643.309280@xxxxxxxxxxxxxxxxxxxxxxxxxxxx
> Is there an easy way to tell what type of file the user selected when
> you do a GetSaveFileName(&ofn); ?
>
> For instance, I want to see if they chose GIF or JPEG.
You could look at the file extension - see PathFindExtension. Or, you
can set up various file types you support in lpstrFilter string and read
nFilterIndex when the function returns.
--
With best wishes,
Igor Tandetnik
With sufficient thrust, pigs fly just fine. However, this is not
necessarily a good idea. It is hard to be sure where they are going to
land, and it could be dangerous sitting under them as they fly
overhead. -- RFC 1925
.
- Follow-Ups:
- Re: GetSaveFileName
- From: Alexander Grigoriev
- Re: GetSaveFileName
- References:
- GetSaveFileName
- From: bob
- GetSaveFileName
- Prev by Date: Re: zero sized array in class
- Next by Date: Re: std::string question
- Previous by thread: GetSaveFileName
- Next by thread: Re: GetSaveFileName
- Index(es):
Relevant Pages
|
|