Re: problem with header files
Pls observe the comments and this works even though I do not forward
declare it.
CUserDlg is a class derived from Dialog .
This works even though you do not forward declare it.
#include "MyListSeriesResltsCtrl.h"
#include "IconsListCtrl.h"
#include "UserDataDlg.h"
//class CUserDlg;
class CMyListSeriesCtrl : public CListCtrl
{
DECLARE_DYNAMIC(CMyListSeriesCtrl)
private:
BOOL m_bIsRowSelected;
int nSortedCol;
BOOL bSortAscending;
public:
CMyListSeriesCtrl();
virtual ~CMyListSeriesCtrl();
CMyListSeriesResltsCtrl *m_pmyListSeriesCtrl;
CIconsListCtrl *m_IconListCtrl;
CUserDataDlg *userDlg;
void SetListToFill(CMyListSeriesResltsCtrl *pListCtrl ){
m_pmyListSeriesCtrl = pListCtrl;
}
void SetTabToFill(CUserDataDlg *pCtrl ){
userDlg= pCtrl;
}
BOOL SortTextItems( int nCol, BOOL bAscending,
int low ,int high );
void SetApply();
protected:
DECLARE_MESSAGE_MAP()
public:
afx_msg void OnLvnKeydownListResults2(NMHDR *pNMHDR, LRESULT
*pResult);
public:
afx_msg void OnNMRclick(NMHDR *pNMHDR, LRESULT *pResult);
public:
afx_msg void OnNMClick(NMHDR *pNMHDR, LRESULT *pResult);
public:
afx_msg void OnLvnColumnclick(NMHDR *pNMHDR, LRESULT *pResult);
afx_msg void OnHeaderClicked(NMHDR* pNMHDR, LRESULT* pResult);
};