The information in this article applies to:
This is the 32-bit version of this sample. SUMMARY
The Lstddx32 sample illustrates a technique for filling both an ordinary
list box control and the list box portion of a combo box control with
data, and using the Microsoft Foundation Class (MFC) Dialog Data Exchange
(DDX) facility to return the selection.
~ Lstddx32.exeFor more information about downloading files from the Microsoft Software Library, please see the following article in the Microsoft Knowledge Base: Q119591 How to Obtain Microsoft Support Files from Online Services NOTE: Use the -d option when running LSTDDX32.EXE to decompress the file and recreate the proper directory structure. MORE INFORMATION
A common misconception with regard to DDX is that assigning a value to a
DDX variable will cause that data to be loaded into a control. This does
in fact happen for edit controls, but not for list box controls. In order
to add items to a list box the dialog class must use the
CListBox::AddString() or CComboBox::AddString() functions. Doing this
involves several steps which are illustrated by this sample.
Additional query words: lstddx listbox
Keywords : kbcode kbsample kbMFC KbUIDesign kbVC |
Last Reviewed: July 29, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |