Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK / Save file dialog?

Author
Message
Zotoaster
19
Years of Service
User Offline
Joined: 20th Dec 2004
Location: Scotland
Posted: 21st Apr 2009 23:37
I've got a nice Open File dialog I got on the forums, but I can't find one that can save files. I've looked all over windows.h, but to no avail. Is there anyone out there who can help me?

Thanks
AndrewT
17
Years of Service
User Offline
Joined: 11th Feb 2007
Location: MI, USA
Posted: 22nd Apr 2009 13:39
GetSaveFileName

i like orange
Zotoaster
19
Years of Service
User Offline
Joined: 20th Dec 2004
Location: Scotland
Posted: 22nd Apr 2009 15:10
Seems cool. I'll give it a shot, see if I can figure out how to use it.

Thanks
AndrewT
17
Years of Service
User Offline
Joined: 11th Feb 2007
Location: MI, USA
Posted: 22nd Apr 2009 21:29
It's pretty easy. I believe you can fill your OPENFILENAME structure with the same values you use for GetOpenFileName, but I'm not totally sure.

i like orange
adastras
16
Years of Service
User Offline
Joined: 15th Oct 2007
Location:
Posted: 24th Apr 2009 22:04
Here is my class FileDialog

Attachments

Login to view attachments
Zotoaster
19
Years of Service
User Offline
Joined: 20th Dec 2004
Location: Scotland
Posted: 24th Apr 2009 23:28
Thanks adastras,

but AndrewT was right. It was just about as easy as the Open File dialog and I was able to just make a new function.

Thanks all, appreciate it.

Login to post a reply

Server time is: 2024-09-30 23:31:51
Your offset time is: 2024-09-30 23:31:51