📄 subject_38101.htm
字号:
<p>
序号:38101 发表者:小丫多多 发表日期:2003-04-30 17:24:36
<br>主题:求救!!如何实现点击自定义菜单项调用消息对话框?
<br>内容:void CRealTimeChanView::OnSetVol() <BR>{<BR> // TODO: Add your command handler code here<BR> CVolSetDlg dlg;<BR> if(dlg.DoModal() == IDOK)<BR> m_PIC.yMax = dlg.m_volmax;<BR> }<BR>m_volmax是对话框里的编辑框变量,m_PIC.yMax是我要通过对话框改变的一个值(具体是坐标轴的纵坐标最大值),是不是可以通过上述代码实现?为什么有错误:<BR>syntax error : missing ';' before identifier 'dlg'<BR>'m_timemax' : is not a member of 'CDialog'<BR>求救!!
<br><a href="javascript:history.go(-1)">返回上页</a><br><a href=http://www.copathway.com/cndevforum/>访问论坛</a></p>
<hr size=1>
<blockquote><p>
回复者:wowow 回复日期:2003-04-30 17:54:48
<br>内容:是否没有在文件头上加#include "VolSetDlg.h"?
<br>
<a href="javascript:history.go(-1)">返回上页</a><br><a href=http://www.copathway.com/cndevforum/>访问论坛</a></p></blockquote>
<hr size=1>
<blockquote><p>
回复者:理文 回复日期:2003-04-30 23:55:45
<br>内容:我是这样用的,没问题;<BR>确实可能没有在文件头上加#include "VolSetDlg.h"?
<br>
<a href="javascript:history.go(-1)">返回上页</a><br><a href=http://www.copathway.com/cndevforum/>访问论坛</a></p></blockquote>
<hr size=1>
<blockquote><p>
回复者:小丫多多 回复日期:2003-05-01 11:39:08
<br>内容:我在头文件加上了#include "VolSetDlg.h",还是出现那样的错!怎么回事?难道自定义菜单项调用消息对话框只能在mainfrm.cpp中实现吗?不能在realtimechanview.cpp实现吗?<BR>2003-5-1 12:02:08
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -