Click here to Skip to main content
15,906,231 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: WM_LBUTTONDOWN not working with CListCtrl class!! Pin
SanjaySMK4-Jan-09 21:33
SanjaySMK4-Jan-09 21:33 
QuestionRe: WM_LBUTTONDOWN not working with CListCtrl class!! Pin
Mark Salsbery4-Jan-09 21:44
Mark Salsbery4-Jan-09 21:44 
AnswerRe: WM_LBUTTONDOWN not working with CListCtrl class!! Pin
SanjaySMK4-Jan-09 22:16
SanjaySMK4-Jan-09 22:16 
GeneralRe: WM_LBUTTONDOWN not working with CListCtrl class!! Pin
Mark Salsbery5-Jan-09 5:59
Mark Salsbery5-Jan-09 5:59 
GeneralRe: WM_LBUTTONDOWN not working with CListCtrl class!! Pin
SanjaySMK5-Jan-09 21:24
SanjaySMK5-Jan-09 21:24 
GeneralRe: WM_LBUTTONDOWN not working with CListCtrl class!! Pin
Mark Salsbery6-Jan-09 5:03
Mark Salsbery6-Jan-09 5:03 
GeneralRe: WM_LBUTTONDOWN not working with CListCtrl class!! Pin
SanjaySMK6-Jan-09 19:43
SanjaySMK6-Jan-09 19:43 
GeneralRe: WM_LBUTTONDOWN not working with CListCtrl class!! [modified] Pin
Mark Salsbery6-Jan-09 20:33
Mark Salsbery6-Jan-09 20:33 
You have to add the entries to DoDataExchange if they are not there.

If the listview controls are in the dialog resource, you can use the wizard
to add a control variable. It will add an entry like

DDX_Control(pDX, IDC_LIST1, m_ListCtrl);

Change m_ListCtrl's type to your derived type in the header file.
Then the control will be subclassed.

From my previous working sample code:
// In the dialog class
	CReflectedListCtrl m_ListCtrl;


// The dialog class' DoDataExchange() override
void CMyDialog::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	DDX_Control(pDX, IDC_LIST1, m_ListCtrl);
}


Mark Salsbery
Microsoft MVP - Visual C++

Java | [Coffee]

modified on Wednesday, January 7, 2009 2:40 AM

GeneralRe: WM_LBUTTONDOWN not working with CListCtrl class!! [modified] Pin
SanjaySMK7-Jan-09 21:27
SanjaySMK7-Jan-09 21:27 
GeneralRe: WM_LBUTTONDOWN not working with CListCtrl class!! [modified] Pin
SanjaySMK8-Jan-09 1:26
SanjaySMK8-Jan-09 1:26 
QuestionRe: WM_LBUTTONDOWN not working with CListCtrl class!! Pin
Mark Salsbery8-Jan-09 4:35
Mark Salsbery8-Jan-09 4:35 
GeneralRe: WM_LBUTTONDOWN not working with CListCtrl class!! Pin
Mark Salsbery8-Jan-09 4:42
Mark Salsbery8-Jan-09 4:42 
GeneralRe: WM_LBUTTONDOWN not working with CListCtrl class!! Pin
SanjaySMK8-Jan-09 18:18
SanjaySMK8-Jan-09 18:18 
GeneralRe: WM_LBUTTONDOWN not working with CListCtrl class!! Pin
Mark Salsbery9-Jan-09 5:31
Mark Salsbery9-Jan-09 5:31 
GeneralRe: WM_LBUTTONDOWN not working with CListCtrl class!! Pin
SanjaySMK13-Jan-09 23:12
SanjaySMK13-Jan-09 23:12 
GeneralRe: WM_LBUTTONDOWN not working with CListCtrl class!! Pin
Mark Salsbery14-Jan-09 5:50
Mark Salsbery14-Jan-09 5:50 
QuestionRe: WM_LBUTTONDOWN not working with CListCtrl class!! [modified] Pin
SanjaySMK14-Jan-09 19:31
SanjaySMK14-Jan-09 19:31 
QuestionPrint in an SDI application Pin
nobaq2-Jan-09 1:31
nobaq2-Jan-09 1:31 
AnswerRe: Print in an SDI application Pin
Paresh Chitte2-Jan-09 1:40
Paresh Chitte2-Jan-09 1:40 
GeneralRe: Print in an SDI application Pin
nobaq2-Jan-09 1:48
nobaq2-Jan-09 1:48 
AnswerRe: Print in an SDI application Pin
Jijo.Raj2-Jan-09 2:13
Jijo.Raj2-Jan-09 2:13 
GeneralRe: Print in an SDI application Pin
nobaq2-Jan-09 4:43
nobaq2-Jan-09 4:43 
QuestionShowing image in List control Pin
KASR12-Jan-09 0:53
KASR12-Jan-09 0:53 
AnswerRe: Showing image in List control Pin
Radhakrishnan G.2-Jan-09 2:45
Radhakrishnan G.2-Jan-09 2:45 
AnswerRe: Showing image in List control Pin
Nishad S2-Jan-09 2:48
Nishad S2-Jan-09 2:48 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.