www.pudn.com > GroupCombo_demo.zip > DynamicCombo.h


#if !defined(AFX_DYNAMICCOMBO_H__E5D882CE_9142_405C_B6A1_288B5DCE0D95__INCLUDED_) 
#define AFX_DYNAMICCOMBO_H__E5D882CE_9142_405C_B6A1_288B5DCE0D95__INCLUDED_ 
 
#if _MSC_VER > 1000 
#pragma once 
#endif // _MSC_VER > 1000 
// DynamicCombo.h : header file 
// 
#include "ComboGroup.h" 
///////////////////////////////////////////////////////////////////////////// 
// CDynamicCombo window 
 
class CComboGroup; 
 
class CDynamicCombo : public CComboBox 
{ 
// Construction 
public: 
	CDynamicCombo(); 
 
// Attributes 
public: 
 
// Operations 
public: 
 
// Overrides 
	// ClassWizard generated virtual function overrides 
	//{{AFX_VIRTUAL(CDynamicCombo) 
	//}}AFX_VIRTUAL 
 
// Implementation 
public: 
	void InitializeDynamicCombo(int index, int boxNumber, CString *str); 
    CDynamicCombo*      pNext; 
    int boxNum; 
    CString currentString; 
    int currentIndex; 
    void SetOwner (CComboGroup *pGroup) { GroupOwner = pGroup; }; 
	virtual ~CDynamicCombo(); 
 
	// Generated message map functions 
protected: 
	//{{AFX_MSG(CDynamicCombo) 
	afx_msg void OnSelchange(); 
	//}}AFX_MSG 
 
	DECLARE_MESSAGE_MAP() 
private: 
	CComboGroup* GroupOwner;	 
}; 
 
///////////////////////////////////////////////////////////////////////////// 
 
//{{AFX_INSERT_LOCATION}} 
// Microsoft Visual C++ will insert additional declarations immediately before the previous line. 
 
#endif // !defined(AFX_DYNAMICCOMBO_H__E5D882CE_9142_405C_B6A1_288B5DCE0D95__INCLUDED_)