Click here to Skip to main content
15,891,513 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: class size doesn't seem to be determined correctly Pin
Stephen Hewitt5-Mar-11 0:32
Stephen Hewitt5-Mar-11 0:32 
QuestionBest way to reduce a 128-bit MD5 to 64-bit Pin
Joe Woodbury4-Mar-11 12:04
professionalJoe Woodbury4-Mar-11 12:04 
AnswerRe: Best way to reduce a 128-bit MD5 to 64-bit Pin
Peter_in_27805-Mar-11 0:30
professionalPeter_in_27805-Mar-11 0:30 
GeneralRe: Best way to reduce a 128-bit MD5 to 64-bit Pin
Joe Woodbury5-Mar-11 6:04
professionalJoe Woodbury5-Mar-11 6:04 
QuestionCCriticalSection seems to cause some weirdness in dll Pin
Albert Holguin4-Mar-11 10:49
professionalAlbert Holguin4-Mar-11 10:49 
AnswerRe: CCriticalSection seems to cause some weirdness in dll Pin
Ozer Karaagac4-Mar-11 13:31
professionalOzer Karaagac4-Mar-11 13:31 
GeneralRe: CCriticalSection seems to cause some weirdness in dll Pin
Albert Holguin4-Mar-11 13:40
professionalAlbert Holguin4-Mar-11 13:40 
QuestionHow can I send LVN_COLUMNCLICK to the parent ? Pin
_Flaviu4-Mar-11 8:59
_Flaviu4-Mar-11 8:59 
Hi . I stock on the follow problem :
I have an CListCtrlEx , derived from CListCtrl , where I have :
// CListCtrlEx.h
afx_msg void OnHdnItemclick(NMHDR* pNMHDR, LRESULT* pResult);

and implementation :
// CListCtrlEx.cpp
	ON_NOTIFY_REFLECT(LVN_COLUMNCLICK, CListCtrlEx::OnHdnItemclick)
...
...

void CListCtrlEx::OnHdnItemclick(NMHDR* pNMHDR, LRESULT* pResult)
{
	NM_LISTVIEW* phdr = reinterpret_cast<NM_LISTVIEW*>(pNMHDR);
	SortOnColumn(phdr->iSubItem, TRUE);
	*pResult = 0;
}


and I need to catch LVN_COLUMNCLICK in parent window :

// CTestList5View.h
	afx_msg void OnHdnItemclickList1(NMHDR* pNMHDR, LRESULT* pResult);

and implementation :
	ON_NOTIFY(LVN_COLUMNCLICK, IDC_LIST1, OnHdnItemclickList1)
...
...
void CTestList5View::OnHdnItemclickList1(NMHDR* pNMHDR, LRESULT* pResult) 
{
	NM_LISTVIEW* phdr = reinterpret_cast<NM_LISTVIEW*>(pNMHDR);
	// TODO: Add your control notification handler code here

	CString sTemp;
	sTemp.Format("%d",phdr->iSubItem);
	TRACE("\n column %s\n",sTemp);

	*pResult = 0;
}

the problem is that program don't cross through CTestList5View::OnHdnItemclickList1
.... why ? And how can I solve the problem ?
AnswerRe: How can I send LVN_COLUMNCLICK to the parent ? Pin
Hans Dietrich4-Mar-11 18:46
mentorHans Dietrich4-Mar-11 18:46 
GeneralRe: How can I send LVN_COLUMNCLICK to the parent ? [modified] Pin
_Flaviu4-Mar-11 20:57
_Flaviu4-Mar-11 20:57 
Questionproblem with device context (and some other bad things) Pin
csrss4-Mar-11 8:38
csrss4-Mar-11 8:38 
QuestionRe: problem with device context (and some other bad things) Pin
CPallini4-Mar-11 9:50
mveCPallini4-Mar-11 9:50 
AnswerRe: problem with device context (and some other bad things) Pin
csrss4-Mar-11 9:56
csrss4-Mar-11 9:56 
AnswerRe: problem with device context (and some other bad things) Pin
Ozer Karaagac4-Mar-11 14:17
professionalOzer Karaagac4-Mar-11 14:17 
GeneralRe: problem with device context (and some other bad things) Pin
csrss4-Mar-11 15:40
csrss4-Mar-11 15:40 
AnswerRe: problem with device context (and some other bad things) Pin
Richard MacCutchan4-Mar-11 22:17
mveRichard MacCutchan4-Mar-11 22:17 
GeneralRe: problem with device context (and some other bad things) Pin
csrss5-Mar-11 0:53
csrss5-Mar-11 0:53 
QuestionSending windows message from worker thread Pin
GC1044-Mar-11 0:41
GC1044-Mar-11 0:41 
AnswerRe: Sending windows message from worker thread Pin
CPallini4-Mar-11 1:47
mveCPallini4-Mar-11 1:47 
GeneralRe: Sending windows message from worker thread Pin
GC1044-Mar-11 2:29
GC1044-Mar-11 2:29 
GeneralRe: Sending windows message from worker thread Pin
prasad_som4-Mar-11 2:33
prasad_som4-Mar-11 2:33 
GeneralRe: Sending windows message from worker thread Pin
CPallini4-Mar-11 3:05
mveCPallini4-Mar-11 3:05 
GeneralRe: Sending windows message from worker thread Pin
CPallini4-Mar-11 2:36
mveCPallini4-Mar-11 2:36 
AnswerRe: Sending windows message from worker thread Pin
prasad_som4-Mar-11 2:30
prasad_som4-Mar-11 2:30 
QuestionGetting Time Difference [modified] Pin
AmbiguousName3-Mar-11 22:29
AmbiguousName3-Mar-11 22:29 

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.