Visual C++ and MFC Fundamentals Chapter 20: List-Based Controls
"StateOrProvince", "PostalCode",
"CountryOrRegion", "HomePhone", "WorkPhone",
"Extension", "MobileNumber", "EmergencyName",
"EmergencyPhone", "Notes" };
const CString Customers[] = { "CustomerID", "CompanyName",
"CompanyAddress", "CompanyCity",
"CompanyState", "companyZIPCode",
"CompanyCountry", "CompanyPhone",
"BillingAddress", "FaxNumber",
"WebSite", "ContactPhone", "ContactEMail" };
const CString Employees[] = { "EmployeeID", "EmployeeNumber",
"DateHired", "Title", "FirstName",
"MI", "LastName", "Address",
"City", "State", "ZIPCode", "Country",
"HomePhone", "WorkPhone", "Extension",
"CellPhone", "EmergencyName",
"EmergencyPhone", "Comments" };
const CString Addresses[] = { "AddressID", "FirstName", "LastName",
"MaritalStatus", "Address", "City",
"StateOrProvince", "PostalCode",
"CountryOrRegion", "EmergencyName",
"EmergencyPhone", "Notes" };
const CString VideoCollection[] = { "VideoID", "VideoTitle",
"CategoryID", "Director", "Rating",
"Length", "VideoReview" };
const CString Categories[] = { "CategoryID", "Category", "Description" };
const CString Authors[] = { "AuthorID", "FullName", "Nationality",
"BirthDate", "BirthPlace",
"AliveDead", "Comments" };
const CString Books[] = { "BookID", "BookTitle", "Author", "CategoryID",
"Publisher", "YearPublished", "NumberOfPages",
"ISBNNumber", "BookReview" };
- In the private section of the class, add new integer variables to hold the dimensions
of the arrays as follows:
private:
int SizeBusiness;
int SizePersonal;
int SizeContacts;
int SizeEmployees;
int SizeAddresses;
int SizeCustomers;
int SizeVideoCollection;
int SizeCategories;
int SizeAuthors;
int SizeBooks;
};
- Access the TableWizardDlg.cpp source file.
To make sure that the Sample Fields list is initially filled up with the right fields,
change the OnInitDialog() function as follows: