Use of Common Dialogs (offered by the operating system)
2006-02-26 20:49
525 查看
void CDialogsDlg::OnButton2()
{// exaple of CFileDialog
// TODO: Add your control notification handler code here
CFileDialog fd(TRUE); //If the argument is FALSE, it means to open a File Save Dialog,True means File Open Dialog
if (fd.DoModal()==IDOK)
{
MessageBox(fd.GetFileName());
}
}
// The exaple above is the most simple one of CFileDialog, actually, there are other arguments of the function that specify the file extension or defualt directory to be opened and so on...,
// Besides the CFileDialog, there are other common dialogs:
{// exaple of CFileDialog
// TODO: Add your control notification handler code here
CFileDialog fd(TRUE); //If the argument is FALSE, it means to open a File Save Dialog,True means File Open Dialog
if (fd.DoModal()==IDOK)
{
MessageBox(fd.GetFileName());
}
}
// The exaple above is the most simple one of CFileDialog, actually, there are other arguments of the function that specify the file extension or defualt directory to be opened and so on...,
// Besides the CFileDialog, there are other common dialogs:
Class | Dialog Type |
CFileDialog | File selection |
CFontDialog | Font selection |
CColorDialog | Color selection |
CPageSetupDialog | Page setup for printing |
CPrintDialog | Printing |
CFindReplaceDialog | Find and Replace |
相关文章推荐
- 国外空间ACCESS错误提示之:Selected collating sequence not supported by the operating system
- /dev/hdb1 is apparently in use by the system; will not make a filesystem here!解决方法
- /dev/sdb1 is apparently in use by the system; will not make a filesystem here!
- 挂载磁盘的问题(/dev/sdb1 is apparently in use by the system; will not make a 文件系统 here!)
- [转]Access错误提示之"Selected collating sequence not supported by the operating system."
- Selected collating sequence not supported by the operating system
- [我研究] A TAXONOMY OF SECURITY FAULTS IN THE UNIX OPERATING SYSTEM - Master Thesis
- ERROR: The Nouveau kernel driver is currently in use by your system.
- 用OLEDB操作Excel时出现Selected collating sequence not supported by the operating system错误,附解决方法
- Customization of the guest operating system 'winNetEnterpriseGuest' is not su
- 操作系统概述操——Summary of the operating system
- How to enable the use of 'Ad Hoc Distributed Queries' by using sp_configure
- (l转)解决国外空间Access错误Selected collating sequence not supported by the operating system
- 转[分享]解决Access错误 Selected collating sequence not supported by the operating system
- /dev/sdxx is apparently in use by the system; will not make a filesystem here! 解决方法
- /dev/hdb1 is apparently in use by the system; will not make a filesystem here!解决方法
- /dev/sdxx is apparently in use by the system; will not make a filesystem here! 解决方法
- Failed to initialize NVML: GPU access blocked by the operating system
- 挂载磁盘的问题(/dev/sdb1 is apparently in use by the system; will not make a 文件系统 here!)
- The cpu has been disabled by the guest operating system解决方法