Visual C++ and MFC Programming 2nd Edition

(Martin Jones) #1

Chapter 21: Tree and List Controls Visual C++ and MFC Fundamentals


m_Model.Format("%s", "Grand Marquis");
m_Year = 2000;
m_Doors = 4;
m_Mileage = 109442;
m_Transmission = 0;
m_AC = TRUE;
m_AirBags = TRUE;
m_CruiseControl = TRUE;
m_Convertible = FALSE;
m_Cassette = TRUE;
m_CDPlayer = FALSE;
}
else
{
m_Make.Format("%s", "");
m_Model.Format("%s", "");
m_Year = 0;
m_Doors = 0;
m_Mileage = 0;
m_Transmission = 0;
m_AC = FALSE;
m_AirBags = FALSE;
m_CruiseControl = FALSE;
m_Convertible = FALSE;
m_Cassette = FALSE;
m_CDPlayer = FALSE;
}

CRect RectPicture;

m_Picture.GetWindowRect(&RectPicture);
ScreenToClient(&RectPicture);
InvalidateRect(&RectPicture);

UpdateData(FALSE);
}


  1. Test the application

  2. Close it and return to MSVC

Free download pdf