You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
72 lines
1.7 KiB
72 lines
1.7 KiB
/////////////////////////////////////////////////////////////////////////////
|
|
//
|
|
// Copyright (c) 2002 Microsoft Corporation
|
|
//
|
|
// Module Name:
|
|
// DDxDDv.h
|
|
//
|
|
// Implementation File:
|
|
// DDxDDv.cpp
|
|
//
|
|
// Description:
|
|
// Definition of custom dialog data exchange/dialog data validation
|
|
// routines.
|
|
//
|
|
// Author:
|
|
// <name> (<e-mail name>) Mmmm DD, 2002
|
|
//
|
|
// Revision History:
|
|
//
|
|
// Notes:
|
|
//
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
#ifndef __DDXDDV_H__
|
|
#define __DDXDDV_H__
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
// Include Files
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
// Global Function Prototypes
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
void AFXAPI DDX_Number(
|
|
IN OUT CDataExchange * pDX,
|
|
IN int nIDC,
|
|
IN OUT DWORD & rdwValue,
|
|
IN DWORD dwMin,
|
|
IN DWORD dwMax,
|
|
IN BOOL bSigned = FALSE
|
|
);
|
|
void AFXAPI DDV_RequiredText(
|
|
IN OUT CDataExchange * pDX,
|
|
IN int nIDC,
|
|
IN int nIDCLabel,
|
|
IN const CString & rstrValue
|
|
);
|
|
|
|
inline void AFXAPI DDX_Number(
|
|
IN OUT CDataExchange * pDX,
|
|
IN int nIDC,
|
|
IN OUT LONG & rnValue,
|
|
IN LONG nMin,
|
|
IN LONG nMax,
|
|
IN BOOL bSigned
|
|
)
|
|
{
|
|
DDX_Number(
|
|
pDX,
|
|
nIDC,
|
|
reinterpret_cast< DWORD & >( rnValue ),
|
|
static_cast< DWORD >( nMin ),
|
|
static_cast< DWORD >( nMax ),
|
|
bSigned
|
|
);
|
|
|
|
} //*** DDXNumber( LONG )
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
#endif // __DDXDDV_H__
|