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.
|
|
|
|
// DlgValStrFixed.cpp : ʵ<><CAB5><EFBFBD>ļ<EFBFBD>
|
|
|
|
|
//
|
|
|
|
|
|
|
|
|
|
#include "stdafx.h"
|
|
|
|
|
#include "LaiPuLaser.h"
|
|
|
|
|
#include "DlgValStrBase.h"
|
|
|
|
|
#include "afxdialogex.h"
|
|
|
|
|
|
|
|
|
|
// CDlgValStrFixed <20>Ի<EFBFBD><D4BB><EFBFBD>
|
|
|
|
|
|
|
|
|
|
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;//<2F><>ǰ<EFBFBD><C7B0><EFBFBD><EFBFBD><EFBFBD><EFBFBD>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)
|
|
|
|
|
{
|
|
|
|
|
//<2F><>ȡ<EFBFBD><C8A1>ǰ<EFBFBD><C7B0><EFBFBD><EFBFBD><EFBFBD>Ŀɱ<C4BF><C9B1>ַ<EFBFBD>ָ<EFBFBD><D6B8>
|
|
|
|
|
m_pValStrBase = m_pValString->GetValStrPtr(m_SelIdx);
|
|
|
|
|
//ÿ<><C3BF><EFBFBD>Ի<EFBFBD><D4BB><EFBFBD>ǿ<EFBFBD><C7BF>ת<EFBFBD><D7AA>Ϊ<EFBFBD>Լ<EFBFBD><D4BC><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ָ<EFBFBD><D6B8>
|
|
|
|
|
DynamicCastStrBase();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
BOOL CDlgValStrBase::OnInitDialog()
|
|
|
|
|
{
|
|
|
|
|
CDialogEx::OnInitDialog();
|
|
|
|
|
|
|
|
|
|
UpdateData(FALSE);
|
|
|
|
|
return TRUE;
|
|
|
|
|
}
|