about ComboBox problem
<<<<<<<Dialog.h>>>>>>>>

public:
    CComboBox Cbx;
    struct Data
    {
        LPCTSTR lpszName;
        LPCTSTR lpszValue;
        int ID;
    };
<<<<<<<Dialog.Cpp>>>>>>>
    Data d;
    d.lpszName=_T("Name");
    d.lpszValue=_T("Value");
    d.ID=1;
    Cbx.InsertString(0,d.lpszName);
    Cbx.SetItemDataPtr(0,(void *)d); 

how to struct data append to ComboBox Control,thank:)

Use CComboBox's methods GetItemDataPtr() and SetItemDataPtr() to attach the structure to an item in the combo box.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.