下面是我的程序<一部分>
#include "Modeless.h"
#include "Valve2Ctl.h"
CValve2Ctrl* pValve=NULL;
CModeless* g_pDlgModeless=NULL;
CModeless::CModeless(CWnd* pParent /*=NULL*/)
: CDialog(CModeless::IDD, pParent)
{
//{{AFX_DATA_INIT(CModeless)
m_status = -1;
m_flows = 0.0;
m_height = 0;
m_width = 0;
//}}AFX_DATA_INIT
if(g_pDlgModeless->Create(CModeless::IDD,pParent))
{
g_pDlgModeless->ShowWindow(SW_SHOW);
}
}
void CModeless::OnOpen()
{
// TODO: Add your control notification handler code here
m_status=0;
pValve->OnDraw();
}
void CModeless::OnClose()
{
// TODO: Add your control notification handler code here
m_status=1;
OnPaint();
为什么我运行的时候老有一个错误,是说调用的OnDraw()函数不能没有参数??
OnDraw()函数是系统自定义的,作用和OnPaint()一样,是画自定义的ActiveX控件,请各位大虾帮帮忙,小妹初学VC有很多不懂,急!!!!!!
}