// xListControl.cpp : implementation file
//

#include "stdafx.h"
#include "6046dryend.h"
#include "xListControl.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CxListControl

CxListControl::CxListControl()
{
	pParent = NULL;
}

CxListControl::~CxListControl()
{
}


BEGIN_MESSAGE_MAP(CxListControl, CListCtrl)
	//{{AFX_MSG_MAP(CxListControl)
	ON_WM_LBUTTONDOWN()
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CxListControl message handlers

void CxListControl::OnLButtonDown(UINT nFlags, CPoint point) 
{
	// TODO: Add your message handler code here and/or call default
	if(pParent)
		::PostMessage(pParent->m_hWnd, 112358,point.x,point.y);
	else
		CListCtrl::OnLButtonDown(nFlags, point);
	//This is a cool effect, but useless
    //PostMessage( WM_NCLBUTTONDOWN, HTCAPTION, MAKELPARAM( point.x, point.y));

	
	//CListCtrl::OnLButtonDown(nFlags, point);

}
