开发者

C++ WinAPI save and open dialogues

How do I implement a save and load dialogue box into my current project? I only need to know how开发者_开发百科 change the basics, like the filename mask and default path.

Any help appreciated, or even a link to a helpful website.

Thanks.


TheForger's WinAPI tutorial is the best IMHO and the part I linked also answers your question.

In WinAPI, the save and open dialogs are created by the functions GetSaveFileName() and GetOpenFileName(). The parameters of the dialog, such as the file name filter is stored in an OPENFILENAME struct.

  • GetOpenFileName
  • GetSaveFileName
  • OPENFILENAME struct
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜