Click here to Skip to main content
16,011,702 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Nasty vertical ReBar trouble Pin
Yuri Kreinin12-Mar-03 7:44
Yuri Kreinin12-Mar-03 7:44 
GeneralRe: Nasty vertical ReBar trouble Pin
Bartosz Bien12-Mar-03 7:55
Bartosz Bien12-Mar-03 7:55 
Generaldll for message logging Pin
will138312-Mar-03 3:34
will138312-Mar-03 3:34 
GeneralRe: dll for message logging Pin
Fredrik Skog12-Mar-03 4:42
Fredrik Skog12-Mar-03 4:42 
GeneralRe: dll for message logging Pin
TomKat14-Mar-03 15:30
TomKat14-Mar-03 15:30 
GeneralCListView: OnItemChanged calls three times?! Pin
shoot12-Mar-03 3:31
shoot12-Mar-03 3:31 
GeneralRe: CListView: OnItemChanged calls three times?! Pin
Chris Losinger12-Mar-03 5:46
professionalChris Losinger12-Mar-03 5:46 
GeneralRe: CListView: OnItemChanged calls three times?! Pin
Joan M12-Mar-03 7:11
professionalJoan M12-Mar-03 7:11 
I've used this...
/////////////////
/////////////////
/////////////////
if ((pNMListView->iItem != this->m_iElementSeleccionatAnt) && (pNMListView->iItem != -1))
{
this->m_iElementSeleccionatAnt = pNMListView->iItem;

if (this->m_cLCtrlParametritzacions.GetItemState(pNMListView->iItem, LVIS_SELECTED) == LVIS_SELECTED)
{...
/////////////////
/////////////////
/////////////////

"this->m_iElementSeleccionatAnt" is a static var that holds the last involved item during the last call to OnItemChanged...

Then I check the selection state...

hope this helps...

PS:
Although the above code can help you (at least this is what I expect...)...
I was trying to control some kind of edition in my listCtrl and it was also called several times...

I've finished controlling mouse clicks and enter key in a listctrl derived control... You will be able to control any key press and so on in a derived class...
GeneralMSDE Stored Procedures and IDE Pin
Braulio Dez12-Mar-03 2:48
Braulio Dez12-Mar-03 2:48 
GeneralMultiple dial-up connections Pin
krnathan12-Mar-03 2:46
krnathan12-Mar-03 2:46 
Generaldetection of win xp/ 200 ver Pin
r i s h a b h s12-Mar-03 2:14
r i s h a b h s12-Mar-03 2:14 
GeneralRe: detection of win xp/ 200 ver Pin
AlexO12-Mar-03 4:28
AlexO12-Mar-03 4:28 
GeneralRe: detection of win xp/ 200 ver Pin
RichardGrimmer14-Mar-03 0:25
RichardGrimmer14-Mar-03 0:25 
GeneralRe: detection of win xp/ 200 ver Pin
TomKat14-Mar-03 15:33
TomKat14-Mar-03 15:33 
QuestionHow to call functions from different processes Pin
Chris Eatough12-Mar-03 0:46
Chris Eatough12-Mar-03 0:46 
AnswerRe: How to call functions from different processes Pin
Rickard Andersson2012-Mar-03 1:06
Rickard Andersson2012-Mar-03 1:06 
AnswerRe: How to call functions from different processes Pin
AlexO12-Mar-03 4:06
AlexO12-Mar-03 4:06 
GeneralRe: How to call functions from different processes Pin
TomKat14-Mar-03 15:37
TomKat14-Mar-03 15:37 
GeneralCreating windows in worker threads Pin
GeMe_Hendrix11-Mar-03 23:44
GeMe_Hendrix11-Mar-03 23:44 
GeneralRe: Creating windows in worker threads Pin
Brigsoft12-Mar-03 6:23
Brigsoft12-Mar-03 6:23 
GeneralRe: Creating windows in worker threads Pin
GeMe_Hendrix13-Mar-03 6:27
GeMe_Hendrix13-Mar-03 6:27 
GeneralAdd-in questions... Pin
HJo11-Mar-03 23:43
HJo11-Mar-03 23:43 
GeneralCListCtrl Pin
JensB11-Mar-03 23:35
JensB11-Mar-03 23:35 
GeneralRe: CListCtrl Pin
Debs12-Mar-03 0:36
Debs12-Mar-03 0:36 
GeneralRe: CListCtrl Pin
JensB12-Mar-03 1:20
JensB12-Mar-03 1:20 

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.