Click here to Skip to main content
15,917,456 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: MFC GUI [modified] Pin
Iain Clarke, Warrior Programmer27-Jan-09 3:30
Iain Clarke, Warrior Programmer27-Jan-09 3:30 
AnswerRe: MFC GUI Pin
Maximilien27-Jan-09 3:29
Maximilien27-Jan-09 3:29 
GeneralRe: MFC GUI Pin
bhanu_850927-Jan-09 3:38
bhanu_850927-Jan-09 3:38 
QuestionChange selection in CListCtrl with keys? Pin
bosfan27-Jan-09 0:45
bosfan27-Jan-09 0:45 
AnswerRe: Change selection in CListCtrl with keys? Pin
Nishad S27-Jan-09 2:51
Nishad S27-Jan-09 2:51 
GeneralRe: Change selection in CListCtrl with keys? Pin
bosfan27-Jan-09 3:23
bosfan27-Jan-09 3:23 
AnswerRe: Change selection in CListCtrl with keys? Pin
Naveen27-Jan-09 2:56
Naveen27-Jan-09 2:56 
GeneralRe: Change selection in CListCtrl with keys? [modified] Pin
bosfan27-Jan-09 3:55
bosfan27-Jan-09 3:55 
Hello,
thanks for answer and i hope its ok if i answer here to naven only??

Yes this works fine, and easy to implement this funktion!
Only one funny thing is now in execution of program, this LVN_ITEMCHANGED is send 3 times?? Also my function i called 3 times??
Here my code:
// in MessageMap:
ON_NOTIFY(LVN_ITEMCHANGED, IDC_LIST, &CMyDialog::OnLvnItemchangedListAll)
// and function:
void CMyDialog::OnLvnItemchangedListAll(NMHDR *pNMHDR, LRESULT *pResult)
{
	LPNMLISTVIEW pNMLV = reinterpret_cast<lpnmlistview>(pNMHDR);
	// TODO: Add your control notification handler code here
	int iCurIndex = m_cListAll.GetSelectionMark();
	CString csItemText = m_cListAll.GetItemText(iCurIndex, 1);
	TRACE(L"%s\n", csItemText); // TRACE IS CALLED 3 TIMES :confused: so if i call here a other function they will be called 3 times??
        // like this here:
        PrintData(csItemText); // this is called 3 times too!
	*pResult = 0;
}
</lpnmlistview>


So is in output the same text 3 times listed Big Grin | :-D , for example if i have text in my current selection: www.codeproject.com
they is dump three times Big Grin | :-D , any idea how to avoid this(if possible Smile | :) ), or is this common property??
But this is that what i'm looking for!

Thanks for help!
termal

modified on Tuesday, January 27, 2009 10:02 AM

GeneralRe: Change selection in CListCtrl with keys? Pin
Nishad S27-Jan-09 4:05
Nishad S27-Jan-09 4:05 
GeneralRe: Change selection in CListCtrl with keys? Pin
Naveen27-Jan-09 4:07
Naveen27-Jan-09 4:07 
GeneralRe: Change selection in CListCtrl with keys? Pin
bosfan27-Jan-09 4:49
bosfan27-Jan-09 4:49 
JokeRe: Change selection in CListCtrl with keys? Pin
Nishad S27-Jan-09 18:01
Nishad S27-Jan-09 18:01 
QuestionMSMQ - Opening a Private Queue through windows service Pin
Md Saleem Navalur27-Jan-09 0:27
Md Saleem Navalur27-Jan-09 0:27 
QuestionRe: MSMQ - Opening a Private Queue through windows service Pin
led mike27-Jan-09 4:44
led mike27-Jan-09 4:44 
AnswerRe: MSMQ - Opening a Private Queue through windows service Pin
Md Saleem Navalur27-Jan-09 22:51
Md Saleem Navalur27-Jan-09 22:51 
QuestionStack Trace [modified] Pin
baerten27-Jan-09 0:06
baerten27-Jan-09 0:06 
AnswerRe: Stack Trace Pin
Hamid_RT27-Jan-09 0:35
Hamid_RT27-Jan-09 0:35 
GeneralRe: Stack Trace Pin
baerten27-Jan-09 0:59
baerten27-Jan-09 0:59 
GeneralRe: Stack Trace Pin
Luc Pattyn27-Jan-09 1:53
sitebuilderLuc Pattyn27-Jan-09 1:53 
GeneralRe: Stack Trace Pin
baerten27-Jan-09 3:29
baerten27-Jan-09 3:29 
GeneralRe: Stack Trace Pin
Randor 27-Jan-09 8:16
professional Randor 27-Jan-09 8:16 
AnswerRe: Stack Trace Pin
Stuart Dootson27-Jan-09 6:04
professionalStuart Dootson27-Jan-09 6:04 
QuestionDatabase implementation in VC++ Pin
Ravi00326-Jan-09 23:22
Ravi00326-Jan-09 23:22 
AnswerRe: Database implementation in VC++ Pin
Rahul Vaishnav26-Jan-09 23:48
Rahul Vaishnav26-Jan-09 23:48 
GeneralRe: Database implementation in VC++ Pin
Ravi00327-Jan-09 0:50
Ravi00327-Jan-09 0:50 

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.