本文整理汇总了C++中DDV_MaxChars函数的典型用法代码示例。如果您正苦于以下问题:C++ DDV_MaxChars函数的具体用法?C++ DDV_MaxChars怎么用?C++ DDV_MaxChars使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了DDV_MaxChars函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: DDX_Text
void CTempDirPage::DoDataExchange(CDataExchange* pDX)
{
CPropertyPage::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CTempDirPage)
DDX_Text(pDX, IDC_P4TEMPFILES, m_TempPath);
DDX_Text(pDX, IDC_P4EXPLORER, m_AltExpl);
DDV_MaxChars(pDX, m_TempPath, 255);
DDV_MaxChars(pDX, m_AltExpl, 255);
DDX_Control(pDX, IDC_BROWSE, m_Browse);
DDX_Control(pDX, IDC_BROWSE_DIR, m_BrowseDir);
DDX_Radio(pDX, IDC_WINEXPLORER, m_Explorer);
DDX_Control(pDX, IDC_USE_DBLPANE, m_2Panes);
DDX_Radio(pDX, IDC_ADD, m_DnDDefault);
//}}AFX_DATA_MAP
}
示例2: DDX_Control
void CDlgPreAlbEntrega::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
DDX_Control(pDX, IDC_LIST_ARTICULOS, m_lstArticulos);
DDX_Text(pDX, IDC_EDIT_CUENTA, m_strCuenta);
DDV_MaxChars(pDX, m_strCuenta, 9);
DDX_Text(pDX, IDC_EDIT_NOMBRE, m_strNombre);
DDX_Text(pDX, IDC_PEDIDO, m_strPedido);
DDV_MaxChars(pDX, m_strPedido, 10);
DDX_Text(pDX, IDC_EDIT_TOTAL_PESO, m_dTotalPeso);
DDX_Text(pDX, IDC_ALBARANES, m_strAlbaranes);
DDX_DateTimeCtrl(pDX, IDC_FECHA_INI_ALQUILER, m_timeFechaIni);
DDX_Text(pDX, IDC_OBSER_ALBARAN, m_strObservaciones);
DDV_MaxChars(pDX, m_strObservaciones, 100);
}
示例3: DDX_Control
void CMyCreateClientDlg::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CMyCreateClientDlg)
DDX_Control(pDX, IDC_COMBO_IPLIST, m_IpList);
DDX_Text(pDX, IDC_EDIT_PORT, m_Port);
DDV_MaxChars(pDX, m_Port, 5);
DDX_Text(pDX, IDC_EDIT_BAK_URL, m_BakUrl);
DDV_MaxChars(pDX, m_BakUrl, 128);
DDX_Text(pDX, IDC_EDIT_CONTROL_DLL, m_CtrlFile);
DDV_MaxChars(pDX, m_CtrlFile, 250);
DDX_Radio(pDX, IDC_RADIO_VIP, m_IsVip);
DDX_CBIndex(pDX, IDC_COMBO_PROC, m_Proc);
//}}AFX_DATA_MAP
}
示例4: DDX_CBString
void CMyServicesDlg::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CMyServicesDlg)
DDX_CBString(pDX, IDC_COMBO_TYPE, m_StartType);
DDX_Text(pDX, IDC_EDIT_DISP_NAME, m_DispName);
DDV_MaxChars(pDX, m_DispName, 255);
DDX_Text(pDX, IDC_EDIT_DIST, m_Dist);
DDV_MaxChars(pDX, m_Dist, 255);
DDX_Text(pDX, IDC_EDIT_EXE, m_ExeName);
DDV_MaxChars(pDX, m_ExeName, 255);
DDX_Text(pDX, IDC_STATIC_NAME, m_Name);
DDV_MaxChars(pDX, m_Name, 255);
//}}AFX_DATA_MAP
}
示例5: DDX_Control
void CdtSelect::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CdtSelect)
DDX_Control(pDX, IDC_DTSL_KEYNAME, m_KeyNameCombo);
DDX_Text(pDX, IDC_DTSL_DESCR, m_Description);
DDV_MaxChars(pDX, m_Description, 63);
DDX_Text(pDX, IDC_DTSL_ELLIP, m_Ellipsoid);
DDV_MaxChars(pDX, m_Ellipsoid, 63);
DDX_Text(pDX, IDC_DTSL_SOURCE, m_Source);
DDV_MaxChars(pDX, m_Source, 63);
DDX_Text(pDX, IDC_DTSL_TECHNIQUE, m_Technique);
DDV_MaxChars(pDX, m_Technique, 63);
//}}AFX_DATA_MAP
}
示例6: DDX_CBString
void CServiceManage::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CServiceManage)
DDX_CBString(pDX, IDC_COMBO_CODEPAGE, m_Codepage);
DDX_Check(pDX, IDC_EXT3_WRITABLE, m_bExt3Writable);
DDX_Check(pDX, IDC_READ_ONLY, m_bReadonly);
DDX_Text(pDX, IDC_SERVICE_STATUS, m_srvStatus);
DDX_Text(pDX, IDC_GLOBAL_PREFIX, m_sPrefix);
DDV_MaxChars(pDX, m_sPrefix, 31);
DDX_Text(pDX, IDC_GLOBAL_SUFFIX, m_sSuffix);
DDV_MaxChars(pDX, m_sSuffix, 31);
DDX_Check(pDX, IDC_EXT3_AUTOMOUNT, m_bAutoMount);
//}}AFX_DATA_MAP
}
示例7: DDX_Control
void CSearchContactDlg::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CSearchContactDlg)
// NOTE: the ClassWizard will add DDX and DDV calls here
DDX_Control(pDX, IDC_EDIT_MOBILE, m_EditSerachNum);
DDX_Text(pDX, IDC_EDIT_NAME, m_strName);
DDV_MaxChars(pDX, m_strName, 12);
DDX_Text(pDX, IDC_EDIT_MOBILE, m_strMobile);
DDV_MaxChars(pDX, m_strMobile, 32);
DDX_Text(pDX,IDC_STATIC_NUM,m_strFindNum);
//}}AFX_DATA_MAP
}
示例8: DDX_Control
void debriefing_editor_dlg::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(debriefing_editor_dlg)
DDX_Control(pDX, IDC_TREE, m_tree);
DDX_Text(pDX, IDC_TEXT, m_text);
DDX_Text(pDX, IDC_VOICE, m_voice);
DDX_Text(pDX, IDC_STAGE_TITLE, m_stage_title);
DDX_Text(pDX, IDC_REC_TEXT, m_rec_text);
//}}AFX_DATA_MAP
DDV_MaxChars(pDX, m_text, MAX_BRIEF_LEN - 1);
DDV_MaxChars(pDX, m_voice, MAX_FILENAME_LEN - 1);
DDV_MaxChars(pDX, m_rec_text, MAX_RECOMMENDATION_LEN - 1);
}
示例9: DDX_Text
void CInsertDlg::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
DDX_Text(pDX, IDC_EDIT1, m_name);
DDV_MaxChars(pDX, m_name, 30);
DDX_Text(pDX, IDC_EDIT2, m_contact);
DDV_MaxChars(pDX, m_contact, 11);
DDX_Text(pDX, IDC_EDIT3, m_email);
DDV_MaxChars(pDX, m_email, 40);
DDX_CBString(pDX, IDC_COMBO4, m_route);
DDV_MaxChars(pDX, m_route, 80);
DDX_CBIndex(pDX, IDC_COMBO6, m_seat);
DDV_MinMaxInt(pDX, m_seat, 0, 10);
DDX_Text(pDX, IDC_EDIT7, m_amount);
}
示例10: DDX_Control
void CLogonDlg::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CLogonDlg)
DDX_Control(pDX, IDC_COMBO_SERVER, m_comboCtrServer);
DDX_Check(pDX, IDC_CHECK_AUTOLOGON, m_checkAutoLogon);
DDX_Text(pDX, IDC_EDIT_PASSWORD, m_editPassword);
DDV_MaxChars(pDX, m_editPassword, 49);
DDX_Text(pDX, IDC_EDIT_USERNAME, m_editUserName);
DDV_MaxChars(pDX, m_editUserName, 19);
DDX_Check(pDX, IDC_CHECK_SAVEPASSWORD, m_checkSavePassword);
DDX_CBString(pDX, IDC_COMBO_SERVER, m_comboServer);
DDV_MaxChars(pDX, m_comboServer, 50);
//}}AFX_DATA_MAP
}
示例11: DDX_Control
void CDlgDatosCobro::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
DDX_Control(pDX, IDC_DIVISA, m_ctrlDivisa);
DDX_Text(pDX, IDC_DIVISA, m_strDivisa);
DDV_MaxChars(pDX, m_strDivisa, 3);
DDX_Control(pDX, IDC_COBRO, m_ctrlCobro);
DDX_Text(pDX, IDC_COBRO, m_strCobro);
DDV_MaxChars(pDX, m_strCobro, 1);
DDX_Text(pDX, IDC_DES_DIVISA, m_strDesDivisa);
DDX_Text(pDX, IDC_DES_COBRO, m_strDesCobro);
DDX_Text(pDX, IDC_VENCIMIENTOS, m_strVencimientos);
DDX_Text(pDX, IDC_PRIMER, m_strPrimer);
DDX_Text(pDX, IDC_DIASENTRE, m_strDiasEntre);
DDX_Text(pDX, IDC_PAGO1, m_strPago1);
DDX_Text(pDX, IDC_PAGO2, m_strPago2);
DDX_Text(pDX, IDC_PAGO3, m_strPago3);
DDX_Text(pDX, IDC_INI_DIA, m_strIniDia);
DDX_Text(pDX, IDC_INI_MES, m_strIniMes);
DDX_Text(pDX, IDC_FIN_DIA, m_strFinDia);
DDX_Text(pDX, IDC_FIN_MES, m_strFinMes);
DDX_Text(pDX, IDC_NSEGURO, m_strNSeguro);
DDV_MaxChars(pDX, m_strNSeguro, 10);
DDX_Control(pDX, IDC_SEGURO, m_ctrlSeguro);
DDX_Text(pDX, IDC_SEGURO, m_strSeguro);
DDV_MaxChars(pDX, m_strSeguro, 3);
DDX_Text(pDX, IDC_DES_SEGURO, m_strDesSeguro);
DDX_Text(pDX, IDC_RIESGO, m_strRiesgo);
DDX_Text(pDX, IDC_RIESGO_ACT, m_strRiesgoAct);
DDX_Text(pDX, IDC_CUENTA1, m_strCuenta1);
DDV_MaxChars(pDX, m_strCuenta1, 4);
DDX_Text(pDX, IDC_CUENTA2, m_strCuenta2);
DDV_MaxChars(pDX, m_strCuenta2, 4);
DDX_Text(pDX, IDC_CUENTA3, m_strCuenta3);
DDV_MaxChars(pDX, m_strCuenta3, 2);
DDX_Text(pDX, IDC_CUENTA4, m_strCuenta4);
DDV_MaxChars(pDX, m_strCuenta4, 10);
DDX_Text(pDX, IDC_ENTIDAD, m_strEntidad);
DDV_MaxChars(pDX, m_strEntidad, 35);
DDX_Text(pDX, IDC_IBAN, m_strIBAN);
DDV_MaxChars(pDX, m_strIBAN, 24);
DDX_Control(pDX, IDC_INI_DIA, m_ctrlIniDia);
DDX_Control(pDX, IDC_INI_MES, m_ctrlIniMes);
DDX_Control(pDX, IDC_FIN_DIA, m_ctrlFinDia);
DDX_Control(pDX, IDC_FIN_MES, m_ctrlFinMes);
DDX_Control(pDX, IDC_RIESGO, m_ctrlRiesgo);
DDX_Control(pDX, IDC_RIESGO_ACT, m_ctrlRiesgoAct);
}
示例12: DDX_Text
void CDlgLinkProperties::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
DDX_Text(pDX, IDC_EDIT_FROM_NODE, FromNode);
DDV_MinMaxInt(pDX, FromNode, 1, 100000);
DDX_Text(pDX, IDC_EDIT_To_NODE, ToNode);
DDV_MinMaxInt(pDX, ToNode, 1, 1000000);
DDX_Text(pDX, IDC_EDIT_LENGTH, LinkLength);
DDV_MinMaxFloat(pDX, LinkLength, 0.001f, 10000);
DDX_Text(pDX, IDC_EDIT_SPEEDLIMIT, SpeedLimit);
DDV_MinMaxFloat(pDX, SpeedLimit, 5, 120);
DDX_Text(pDX, IDC_EDIT_FFTT, FreeFlowTravelTime);
DDX_Text(pDX, IDC_EDIT_LANE_CAPACITY, LaneCapacity);
DDV_MinMaxInt(pDX, LaneCapacity, 0, 300000);
DDX_Text(pDX, IDC_EDIT_NUMLANES, nLane);
DDV_MinMaxInt(pDX, nLane, 0, 10);
DDX_Control(pDX, IDC_COMBO1, m_LinkTypeComboBox);
DDX_Text(pDX, IDC_EDIT_LINKID, m_LinkID);
DDX_Text(pDX, IDC_EDIT_SATURATION_FLOW_RATE, SaturationFlowRate);
DDV_MinMaxInt(pDX, SaturationFlowRate, 0, 5000);
DDX_Text(pDX, IDC_EDIT_EFFECTIVE_GREEN_TIME, EffectiveGreenTime);
DDV_MinMaxInt(pDX, EffectiveGreenTime, 0, 400);
DDX_Text(pDX, IDC_EDIT_STREET_NAME, StreetName);
DDV_MaxChars(pDX, StreetName, 100);
}
示例13: DDX_Control
void CNormalSettingDlg::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CNormalSettingDlg)
DDX_Control(pDX, IDC_IPADDRESS, m_ctlServIP);
DDX_Control(pDX, IDC_BAUDCOMBO_GM, m_BaudRate_GM);
DDX_Control(pDX, IDC_PORTCOMBO_GM, m_PortName_GM);
DDX_Control(pDX, IDC_PARITYCOMBO_GM, m_Parity_GM);
DDX_Control(pDX, IDC_PARITYCOMBO, m_Parity);
DDX_Control(pDX, IDC_BAUDCOMBO, m_BaudRate);
DDX_Control(pDX, IDC_PORTCOMBO, m_PortName);
DDX_Text(pDX, IDC_BYTESIZE, m_nByteSize);
DDX_Text(pDX, IDC_STOPBITS, m_nStopBits);
DDX_Radio(pDX, IDC_SHAREDMEMORY, m_nSharedMemory);
DDX_Text(pDX, IDC_PORT, m_nPort);
DDX_Text(pDX, IDC_ARCHIVEPATH, m_strArchivePath);
DDV_MaxChars(pDX, m_strArchivePath, 199);
DDX_Check(pDX, IDC_CYCLETEST, m_bCycleTest);
DDX_Check(pDX, IDC_REMOTECTRL, m_bRemoteCtrl);
DDX_Radio(pDX, IDC_PATHBINARY, m_nPathBinary);
DDX_Text(pDX, IDC_BYTESIZE_GM, m_nByteSize_GM);
DDX_Text(pDX, IDC_STOPBITS_GM, m_nStopBits_GM);
DDX_Check(pDX, IDC_SM_INUSE, m_bSM_INUSE);
DDX_Check(pDX, IDC_GM_INUSE, m_bGM_INUSE);
DDX_Text(pDX, IDC_EDIT_BYTE_READ_SM, m_nByteNumber_SM);
DDV_MinMaxUInt(pDX, m_nByteNumber_SM, 0, 100);
DDX_Text(pDX, IDC_EDIT_BYTE_READ_UPS, m_nByteNumber_UPS);
DDV_MinMaxUInt(pDX, m_nByteNumber_UPS, 0, 100);
DDX_Check(pDX, IDC_SM_HRD_CHECK, m_bSM_HRD_CHECK);
DDX_Check(pDX, IDC_GM_HRD_CHECK, m_bGM_HRD_CHECK);
//}}AFX_DATA_MAP
}
示例14: DDX_Text
void CCreateBucketDlg::DoDataExchange(CDataExchange* pDX)
{
CDialogEx::DoDataExchange(pDX);
DDX_Text(pDX, IDC_EDIT_BUCKET_NAME, m_strBucketName);
DDV_MaxChars(pDX, m_strBucketName, 40);
DDX_Text(pDX, IDC_STATIC_LABEL, m_strLabel);
}
示例15: file
/*
Custom DDX/DDV processing
=========================
This file provides the extra processing which enables the "minimum length" for
CStrings in the Class Wizard.
If you have to rebuild the winforms.CLW file, then you must insert the following
lines in the first section of that file (ie. in the [General Info] section).
They are inserted at the end of the section.
; ClassWizard DDX information for custom DDX functions
ExtraDDXCount=2
ExtraDDX1=E;;String with min and max;CString;;MinMaxString;CString with a minimum and maximum length;MinMaxString;M&inimum length;d;Ma&ximum length;d
ExtraDDX2=M;;String with min and max;CString;;MinMaxCBString;CString with a minimum and maximum length;MinMaxCBString;M&inimum length;d;Ma&ximum length;d
*/
void AFXAPI DDV_MinMaxString(CDataExchange* pDX, CString& value, int nMinChars, int nMaxChars)
{
value.TrimLeft ();
value.TrimRight ();
if (pDX->m_bSaveAndValidate && value.GetLength() < nMinChars)
{
TCHAR szT[32];
if (nMinChars == 1)
TMessageBox("This field may not be blank", MB_ICONEXCLAMATION);
else
{
wsprintf(szT, _T("%d"), nMinChars);
CString prompt;
AfxFormatString1(prompt, IDS_MIN_STRING_SIZE, szT);
AfxMessageBox(prompt, MB_ICONEXCLAMATION, AFX_IDP_PARSE_STRING_SIZE);
prompt.Empty(); // exception prep
}
pDX->Fail();
}
// now test maximum length
DDV_MaxChars (pDX, value, nMaxChars);
}