Some "Save as" dialogs provide a default file开发者_StackOverflow中文版 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!
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?
精彩评论