C++中已经自定义了MinLabel类,但是在对话框文档中添加一个Label对象类型却总是CString,请高手指教?
#include"Util\MinButton.h"#include"Util\MinLabel.h"#include"WinHardExtern.h"#include"...
#include "Util\MinButton.h"
#include "Util\MinLabel.h"
#include "WinHardExtern.h"
#include "BarcodeModeDlg.h"
#include "EQOCX\ProductManage.h"
/////////////////////////////////////////////////////////////////////////////
// CSystemDataDlg dialog
CSystemDataDlg::CSystemDataDlg(CWnd* pParent /*=NULL*/)
: CDialog(CSystemDataDlg::IDD, pParent)
{
//{{AFX_DATA_INIT(CSystemDataDlg)
m_OriginWaitTime = OriginWaitTime;
m_MotionMoveAfterTime = MotionMoveAfterTime;
m_MotionMoveWaitTime = MotionMoveWaitTime;
m_CylMoveAfterTime = CylMoveAfterTime;
m_CylMoveWaitTime = CylMoveWaitTime;
m_LifterBarCodeRead = LifterBarCodeRead;
m_SafetySensor = SafetySensor;
m_dBlowMotorOnDelay = dBlowMotorOnDelay;
m_dBlowMotorOffDelay= dBlowMotorOffDelay;
m_nScanBarcode = DoScanBarcode;
m_dBufferCount = BufferCount;
m_ByPassYLimit = dByPassYLimit;
m_LoaderMotorTime = LoaderMotorTime;
m_LineController = LineController;
m_TraySelect = TraySelect;
m_ByPassUnloadingPosflage = ByPassUnloadingPosflage;
m_VacuumWaitTime = VacuumWaitTime;
m_VacuumAfterTime = VacuumAfterTime;
m_CutChange = CutChangeSelect;
m_BarCodeReadSliding = BarCodeReadSliding;
//}}AFX_DATA_INIT
}
描述的可能不清楚,以上是相关程序!如果类型是MinLabel,上面就会出现标题赋值给成员变量的代码!
请详细说明下为什么! 展开
#include "Util\MinLabel.h"
#include "WinHardExtern.h"
#include "BarcodeModeDlg.h"
#include "EQOCX\ProductManage.h"
/////////////////////////////////////////////////////////////////////////////
// CSystemDataDlg dialog
CSystemDataDlg::CSystemDataDlg(CWnd* pParent /*=NULL*/)
: CDialog(CSystemDataDlg::IDD, pParent)
{
//{{AFX_DATA_INIT(CSystemDataDlg)
m_OriginWaitTime = OriginWaitTime;
m_MotionMoveAfterTime = MotionMoveAfterTime;
m_MotionMoveWaitTime = MotionMoveWaitTime;
m_CylMoveAfterTime = CylMoveAfterTime;
m_CylMoveWaitTime = CylMoveWaitTime;
m_LifterBarCodeRead = LifterBarCodeRead;
m_SafetySensor = SafetySensor;
m_dBlowMotorOnDelay = dBlowMotorOnDelay;
m_dBlowMotorOffDelay= dBlowMotorOffDelay;
m_nScanBarcode = DoScanBarcode;
m_dBufferCount = BufferCount;
m_ByPassYLimit = dByPassYLimit;
m_LoaderMotorTime = LoaderMotorTime;
m_LineController = LineController;
m_TraySelect = TraySelect;
m_ByPassUnloadingPosflage = ByPassUnloadingPosflage;
m_VacuumWaitTime = VacuumWaitTime;
m_VacuumAfterTime = VacuumAfterTime;
m_CutChange = CutChangeSelect;
m_BarCodeReadSliding = BarCodeReadSliding;
//}}AFX_DATA_INIT
}
描述的可能不清楚,以上是相关程序!如果类型是MinLabel,上面就会出现标题赋值给成员变量的代码!
请详细说明下为什么! 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询