You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
55 lines
1.1 KiB
C++
55 lines
1.1 KiB
C++
// DlgValStrFixed.cpp : 实现文件
|
|
//
|
|
|
|
#include "stdafx.h"
|
|
#include "LaiPuLaser.h"
|
|
#include "DlgValStrBase.h"
|
|
#include "afxdialogex.h"
|
|
|
|
// CDlgValStrFixed 对话框
|
|
|
|
IMPLEMENT_DYNAMIC(CDlgValStrBase, CDialogEx)
|
|
BEGIN_MESSAGE_MAP(CDlgValStrBase, CDialogEx)
|
|
END_MESSAGE_MAP()
|
|
|
|
CDlgValStrBase::CDlgValStrBase(int IDD,CWnd* pParent /*=NULL*/)
|
|
: CDialogEx(IDD, pParent)
|
|
{
|
|
m_pValStrBase = NULL;//当前操作的ValStr
|
|
}
|
|
|
|
CDlgValStrBase::~CDlgValStrBase()
|
|
{
|
|
}
|
|
void CDlgValStrBase::DoDataExchange(CDataExchange* pDX)
|
|
{
|
|
CDialogEx::DoDataExchange(pDX);
|
|
}
|
|
|
|
void CDlgValStrBase::SetParm(CValString *p,bool bAdd,int SelIdx)
|
|
{
|
|
m_pValString = p;
|
|
m_bAdd = bAdd;
|
|
m_SelIdx = SelIdx;
|
|
|
|
if(m_bAdd)
|
|
{
|
|
|
|
}
|
|
else if(m_pValString)
|
|
{
|
|
//获取当前操作的可变字符指针
|
|
m_pValStrBase = m_pValString->GetValStrPtr(m_SelIdx);
|
|
//每个对话框强制转换为自己的类型指针
|
|
DynamicCastStrBase();
|
|
}
|
|
}
|
|
|
|
BOOL CDlgValStrBase::OnInitDialog()
|
|
{
|
|
CDialogEx::OnInitDialog();
|
|
|
|
UpdateData(FALSE);
|
|
return TRUE;
|
|
}
|