看了一些代码和文档说明还是没有搞清楚这个参数如何用,才能加载模板希望大家能帮忙提供下用法,谢谢!如:
OPENFILENAME OFN;
OFN.lpTemplateName = TEXT("TempalteName1");
然后如何定义后面要加载的模板呢?
OPENFILENAME OFN;
OFN.lpTemplateName = TEXT("TempalteName1");
然后如何定义后面要加载的模板呢?
解决方案 »
- 使用zlib怎样压缩一个文件夹(文件夹下有好多文件)?
- 百度空间登录显示密码错误的时候,为什么源码里面找不到“密码错误”的字符窜?
- 使用UDP协议能成功发送的程序为什么换成TCP协议就不行了呢?
- atl中,怎么设置wndproc 钩子,来达到处理消息。
- 哪有vs2005的电子书籍可下载?
- 请问那位有SMTP, POP3收发中文邮件的原码?谢谢。
- 帮小妹指点迷津
- 怎么样监视某个文件夹下的某个文件给Delete了,或被改了文件名?以及增加了哪个文件!
- 查询SQL SERVER使用‘%’通配符时,为什么用一个不行,必须用两个才能执行查询?
- 用 ADO 方式在发生异常的时候如何关闭记录集?
- 怎样获取与指定颜色对比强烈的颜色?
- 调用其他程序问题
lpTemplateName
Pointer to a null-terminated string that names a dialog template resource in the module identified by the hInstance member. For numbered dialog box resources, this can be a value returned by the MAKEINTRESOURCE macro. This member is ignored unless the OFN_ENABLETEMPLATE flag is set in the Flags member. If the OFN_EXPLORER flag is set, the system uses the specified template to create a dialog box that is a child of the default Explorer-style dialog box. If the OFN_EXPLORER flag is not set, the system uses the template to create an old-style dialog box that replaces the default dialog box.
STYLE DS_SETFONT | DS_MODALFRAME | WS_CAPTION | WS_SYSMENU
CAPTION "关于"
FONT 9, "宋体"
BEGIN
ICON IDI_VIEWTXT,IDC_MYICON,14,9,16,16
LTEXT "viewtxt 1.0 版",IDC_STATIC,49,10,119,8,SS_NOPREFIX
LTEXT "版权所有 (C) 2011",IDC_STATIC,49,20,119,8
DEFPUSHBUTTON "确定",IDOK,195,6,30,11,WS_GROUP
END但是像这种用了自己的,那么用到的filter和filename的buffer如何与其关联上呢?