Re: GetSaveFileName



<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


.



Relevant Pages

  • Re: How to pass arguments to a CreateThread(...)
    ... support for your interface? ... Igor Tandetnik ... With sufficient thrust, pigs fly just fine. ...
    (microsoft.public.vc.atl)
  • Re: Passing an object to function
    ... Igor Tandetnik ... With sufficient thrust, pigs fly just fine. ... land, and it could be dangerous sitting under them as they fly ...
    (microsoft.public.vc.language)
  • Re: mouse clicked Area from C# DOM
    ... "Igor Tandetnik" wrote: ... make it text size bold ... using execommand ... With sufficient thrust, pigs fly just fine. ...
    (microsoft.public.inetsdk.programming.webbrowser_ctl)
  • Re: support_error_info attribute
    ... > immediate reason it does not work is that the compiler has no way to know ... > only indication of type is a %s inside a string literal. ... > Igor Tandetnik ... > With sufficient thrust, pigs fly just fine. ...
    (microsoft.public.vc.atl)