Click here to Skip to main content
15,887,214 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Compress short fixed length string (52 characters) down to less than 40. Pin
hatemtaleb24-May-13 4:12
hatemtaleb24-May-13 4:12 
QuestionSetCheck on click in CListCtrl Pin
_Flaviu15-May-13 2:30
_Flaviu15-May-13 2:30 
AnswerRe: SetCheck on click in CListCtrl Pin
Jochen Arndt15-May-13 3:33
professionalJochen Arndt15-May-13 3:33 
GeneralRe: SetCheck on click in CListCtrl Pin
_Flaviu15-May-13 20:53
_Flaviu15-May-13 20:53 
GeneralRe: SetCheck on click in CListCtrl Pin
Jochen Arndt15-May-13 21:05
professionalJochen Arndt15-May-13 21:05 
GeneralRe: SetCheck on click in CListCtrl Pin
_Flaviu15-May-13 21:26
_Flaviu15-May-13 21:26 
GeneralRe: SetCheck on click in CListCtrl Pin
Jochen Arndt15-May-13 21:36
professionalJochen Arndt15-May-13 21:36 
GeneralRe: SetCheck on click in CListCtrl Pin
_Flaviu15-May-13 23:07
_Flaviu15-May-13 23:07 
I think that I had solved :
C++
void CTestListCtrlDlg::OnClickList1(NMHDR* pNMHDR, LRESULT* pResult) 
{
	// TODO: Add your control notification handler code here

	NM_LISTVIEW* pNMListView = (NM_LISTVIEW*)pNMHDR;
	const CPoint pt = pNMListView->ptAction;
	const BOOL bCurrentCheckState = m_List.GetCheck(pNMListView->iItem);
	if(0 <= pNMListView->iItem && 15 < pt.x)
		m_List.SetCheck(pNMListView->iItem, ! bCurrentCheckState);

	*pResult = 0;
}


I don't know if is OK, but seems to work ...
GeneralRe: SetCheck on click in CListCtrl Pin
Jochen Arndt15-May-13 23:20
professionalJochen Arndt15-May-13 23:20 
GeneralRe: SetCheck on click in CListCtrl Pin
_Flaviu15-May-13 23:24
_Flaviu15-May-13 23:24 
QuestionWriting on BitMap by DC does not work Pin
Member 989133414-May-13 21:17
Member 989133414-May-13 21:17 
AnswerRe: Writing on BitMap by DC does not work Pin
dusty_dex17-May-13 6:26
dusty_dex17-May-13 6:26 
QuestionHow to read-write Excel using MFC, without MS Office? Pin
Caesarea14-May-13 20:03
Caesarea14-May-13 20:03 
AnswerRe: How to read-write Excel using MFC, without MS Office? Pin
Richard MacCutchan14-May-13 21:09
mveRichard MacCutchan14-May-13 21:09 
AnswerRe: How to read-write Excel using MFC, without MS Office? Pin
Member 989133414-May-13 21:14
Member 989133414-May-13 21:14 
AnswerRe: How to read-write Excel using MFC, without MS Office? Pin
Jochen Arndt14-May-13 21:14
professionalJochen Arndt14-May-13 21:14 
AnswerRe: How to read-write Excel using MFC, without MS Office? Pin
Erudite_Eric16-May-13 7:12
Erudite_Eric16-May-13 7:12 
AnswerRe: How to read-write Excel using MFC, without MS Office? Pin
Caesarea16-May-13 19:47
Caesarea16-May-13 19:47 
Questionscrollview issue on win7 environment Pin
Ghost Employee14-May-13 16:54
Ghost Employee14-May-13 16:54 
AnswerRe: scrollview issue on win7 environment Pin
Newbie0017-May-13 8:21
Newbie0017-May-13 8:21 
GeneralRe: scrollview issue on win7 environment Pin
Ghost Employee21-May-13 0:50
Ghost Employee21-May-13 0:50 
GeneralRe: scrollview issue on win7 environment Pin
Newbie0022-May-13 9:39
Newbie0022-May-13 9:39 
GeneralRe: scrollview issue on win7 environment Pin
Ghost Employee22-May-13 16:36
Ghost Employee22-May-13 16:36 
GeneralRe: scrollview issue on win7 environment Pin
Ghost Employee24-May-13 21:02
Ghost Employee24-May-13 21:02 
GeneralRe: scrollview issue on win7 environment Pin
Newbie0025-May-13 0:05
Newbie0025-May-13 0:05 

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.