Once the DDV is outside, you can set the
values dynamically from variables or expressions. For example:
void CSetWinner::DoDataExchange(CDataExchange* pDX)
DDX_Text(pDX, IDC_WINNING_VALUE, m_winning_value);
int low_number = 1;
int high_number = 40;
DDV_MinMaxInt(pDX, m_winning_value, low_number,
In the next column, we'll return to our examination of controls.