如何制作“选择文件"Windows 编程的功能? [英] how to make "choose file" function on windows programming?

查看:18
本文介绍了如何制作“选择文件"Windows 编程的功能?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的程序中需要这个众所周知的选择文件"功能,以便我可以加载文件.

I need this us all known "choose file" feature in my program, so i can load files.

这个东西叫什么,它的代码在哪里?

What is this thing called as and where is the code for it?

推荐答案

您所指的是 "common dialogs",您可以使用 GetOpenFileName

What you are referring to are the "common dialogs", and you can get a file open dialog with GetOpenFileName

BOOL GetOpenFileName(      
    LPOPENFILENAME lpofn
);

此处提供示例

这篇关于如何制作“选择文件"Windows 编程的功能?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆