Click here to Skip to main content
15,903,854 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
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 
termal wrote:
thanks for answer and i hope its ok if i answer here to naven only??


Its ok. I will inform ns.ami cause he is my friend and we both work in same company Smile | :)

termal wrote:
Only one funny thing is now in execution of program, this LVN_ITEMCHANGED is send 3 times??


Yes this is because, the LVN_ITEMCHANGED is fired not only for selection change but also for foucs changes. So you should check, whether the current LVN_ITEMCHANGED is for selection change or not.

NM_LISTVIEW* pNMListView = reinterpret_cast<NM_LISTVIEW*>(pNMHDR);
if( LVIF_STATE == (pNMListView->uChanged&LVIF_STATE) )
{
    if( LVIS_SELECTED == (LVIS_SELECTED&pNMListView->uNewState) )
    {
        // pNMListView->iItem is now Selected
    }
    else if( LVIS_SELECTED == (LVIS_SELECTED &pNMListView->uOldState) )
    {
        // The selection of pNMListView->iItem has been removed
    }
}



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 
AnswerRe: Database implementation in VC++ Pin
Hamid_RT27-Jan-09 0:31
Hamid_RT27-Jan-09 0:31 
GeneralRe: Database implementation in VC++ Pin
Ravi00327-Jan-09 0:51
Ravi00327-Jan-09 0:51 

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.