Win32: “Save as” dialog file name hint
Question
Some "Save as" dialogs provide a default file name - how is it done?
I know how to create basic "Save as" dialog: OPENFILENAME, GetSaveFileName, and all that. But where should I put the string representing, say the file name of currently opened file? I thought it would come from .lpstrFile but this is not the case...
Update: I was not using static char path in WinProc. Now I am, and it works!
Solution
Actually, it does come from lpstrFile. The documentation says:
lpstrFile: Long pointer to a buffer that contains a file name used to initialize the File Name edit control. [...]
Maybe you could give a short(!) code example that can be used to reproduce your problem?
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow