Question : Need some help with ComboBox and Column

Hello Zoppo,
I hope that is the last question about the MultiColumnComboBox.
I hope the answer is easy. Everything works now fine.
But I want add a new ComboBox....so that I have 2.
The first was with data of our customer (Invoice Address) and the second with our
sales conditions.
Now it works because I have replaced the % with %%.

But I need now a extra function for the second combobox.
I have added a new variable
 CMulti_Column_ComboBox_NEU  m_wndCombo1;
and get all the data in the second combobox.
But when the user selects a salescondition of the second combo....I need a new
SelectCurrentItem.
How can I do this. Otherwise the data will mixed up.
Please help.
500 points.
Best regards,
Thomas



Code Snippet:
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
#pragma once
#include "afxwin.h"
#include "afxcmn.h"
#include "geschaeftsadressen_class.h"//Daten
#include "kontaktpersonen.h"
#include "kontaktpersonen_AendernNeu.h"
#include "MouseOverListCtrl_Geschaeftsadressen.h"
#include "MyButton.h"//Diese Klasse ist nur dafür da das ich bitmaps auf disabled button
//andernfalls sehe ich nur ein dunkel graues Bild
//#include "MultiColumnComboBox.h"// ComboBox mit Column
#include "Multi_Column_Combobox_NEU.h" // ComboBox mit Column meine Klasse von CMultiColumnComboBox abgeleitet
 
 
// CGeschaeftsadressen-Dialogfeld
 
class CGeschaeftsadressen : public CDialog
{
	DECLARE_DYNAMIC(CGeschaeftsadressen)
 
public:
//	CGeschaeftsadressen(CWnd* pParent = NULL);   // Standardkonstruktor
 
	//CMultiColumnComboBox m_wndCombo; //ComboBox mit Column Rechnungsadressen
	CMulti_Column_ComboBox_NEU  m_wndCombo; //ComboBox mit Column Rechnungsadressen meine Klasse
    CMulti_Column_ComboBox_NEU  m_wndCombo1;

Answer : Need some help with ComboBox and Column

Well, that works too - is a bit less generic, but ok.

Anyway I would suggest to use the resource IDs instead of there numeric values, i.e.

> if ( m_nEidtBoxID == IDC_EDIT1 ) ...

ZOPPO

Random Solutions  
 
programming4us programming4us