1、获得内嵌的CFiledialog的控件,他们的ID如下:
|
Open Button |
1 |
|
Cancel Button |
2 |
|
file name(Edit Combo) |
1152 |
|
folder(Combo) |
1137 |
|
read only(Label) |
1040 |
|
file extension(Combo) |
1136 |
|
FolderView(ListView) |
1 |
|
ToolBar |
1088 |
我们这样获得对应的控件:
CWnd *pwnd=GetParent()->GetDlgItem(1136);//file extension(Combo)
pwnd->GetWindowText(str);
本文详细介绍了 CFileDialog 对话框中各个控件的ID,包括打开按钮、取消按钮、文件名编辑组合框等,并提供了获取文件扩展名组合框控件实例的方法。
3727

被折叠的 条评论
为什么被折叠?



