diff options
Diffstat (limited to '')
-rw-r--r-- | public/sdk/inc/mfc42/afxdd_.h | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/public/sdk/inc/mfc42/afxdd_.h b/public/sdk/inc/mfc42/afxdd_.h new file mode 100644 index 000000000..43ea703a6 --- /dev/null +++ b/public/sdk/inc/mfc42/afxdd_.h @@ -0,0 +1,64 @@ +// This is a part of the Microsoft Foundation Classes C++ library. +// Copyright (C) 1992-1995 Microsoft Corporation +// All rights reserved. +// +// This source code is only intended as a supplement to the +// Microsoft Foundation Classes Reference and related +// electronic documentation provided with the library. +// See these sources for detailed information regarding the +// Microsoft Foundation Classes product. + +// Do not include this file directly (included by AFXWIN.H) + +///////////////////////////////////////////////////////////////////////////// +// Standard Dialog Data Exchange routines + +class COleCurrency; // forward reference (see afxdisp.h) +class COleDateTime; // forward reference (see afxdisp.h) + +// simple text operations +void AFXAPI DDX_Text(CDataExchange* pDX, int nIDC, BYTE& value); +void AFXAPI DDX_Text(CDataExchange* pDX, int nIDC, short& value); +void AFXAPI DDX_Text(CDataExchange* pDX, int nIDC, int& value); +void AFXAPI DDX_Text(CDataExchange* pDX, int nIDC, UINT& value); +void AFXAPI DDX_Text(CDataExchange* pDX, int nIDC, long& value); +void AFXAPI DDX_Text(CDataExchange* pDX, int nIDC, DWORD& value); +void AFXAPI DDX_Text(CDataExchange* pDX, int nIDC, CString& value); +void AFXAPI DDX_Text(CDataExchange* pDX, int nIDC, float& value); +void AFXAPI DDX_Text(CDataExchange* pDX, int nIDC, double& value); +void AFXAPI DDX_Text(CDataExchange* pDX, int nIDC, COleCurrency& value); +void AFXAPI DDX_Text(CDataExchange* pDX, int nIDC, COleDateTime& value); + +// special control types +void AFXAPI DDX_Check(CDataExchange* pDX, int nIDC, int& value); +void AFXAPI DDX_Radio(CDataExchange* pDX, int nIDC, int& value); +void AFXAPI DDX_LBString(CDataExchange* pDX, int nIDC, CString& value); +void AFXAPI DDX_CBString(CDataExchange* pDX, int nIDC, CString& value); +void AFXAPI DDX_LBIndex(CDataExchange* pDX, int nIDC, int& index); +void AFXAPI DDX_CBIndex(CDataExchange* pDX, int nIDC, int& index); +void AFXAPI DDX_LBStringExact(CDataExchange* pDX, int nIDC, CString& value); +void AFXAPI DDX_CBStringExact(CDataExchange* pDX, int nIDC, CString& value); +void AFXAPI DDX_Scroll(CDataExchange* pDX, int nIDC, int& value); + +// for getting access to the actual controls +void AFXAPI DDX_Control(CDataExchange* pDX, int nIDC, CWnd& rControl); + +///////////////////////////////////////////////////////////////////////////// +// Standard Dialog Data Validation routines + +// range - value must be >= minVal and <= maxVal +// NOTE: you will require casts for 'minVal' and 'maxVal' to use the +// UINT, DWORD or float types +void AFXAPI DDV_MinMaxByte(CDataExchange* pDX, BYTE value, BYTE minVal, BYTE maxVal); +void AFXAPI DDV_MinMaxShort(CDataExchange* pDX, short value, short minVal, short maxVal); +void AFXAPI DDV_MinMaxInt(CDataExchange* pDX, int value, int minVal, int maxVal); +void AFXAPI DDV_MinMaxLong(CDataExchange* pDX, long value, long minVal, long maxVal); +void AFXAPI DDV_MinMaxUInt(CDataExchange* pDX, UINT value, UINT minVal, UINT maxVal); +void AFXAPI DDV_MinMaxDWord(CDataExchange* pDX, DWORD value, DWORD minVal, DWORD maxVal); +void AFXAPI DDV_MinMaxFloat(CDataExchange* pDX, float const& value, float minVal, float maxVal); +void AFXAPI DDV_MinMaxDouble(CDataExchange* pDX, double const& value, double minVal, double maxVal); + +// number of characters +void AFXAPI DDV_MaxChars(CDataExchange* pDX, CString const& value, int nChars); + +///////////////////////////////////////////////////////////////////////////// |