开发者

Win32: "Save as" dialog file name hint

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?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜