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

C / C++ / MFC

 
GeneralRe: How to Input without Breaking the Line, in a console? Pin
Aidman12-Mar-03 8:03
Aidman12-Mar-03 8:03 
GeneralNasty vertical ReBar trouble Pin
Bartosz Bien12-Mar-03 3:57
Bartosz Bien12-Mar-03 3:57 
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 
Im my ListView control I want to catch the event when an item is selected, or when user selects new item with arrowkeys, or when NO item is selected. This can all be catched with OnItemChanged event, or with the OnItemChanging event.
However, the OnItemChanged event is called THREE times when switching from one item to another. By catching the event with a messagebox, I determined what happens when changing items:

[item0 is selected]

-> User selects item1
-> [1st call OnItemChanged], the itemindex is item0 and no. of items selected is 1
-> [2nd call OnItemChanged], the itemindex is item0, no. of items selected is 0
-> [3rd call OnItemChanged], the itemindex is item1, no. of items selected is 1

[item1 is selected]

I want to display a preview form in my lower CSplitterwnd, which is dependant on the type of selected item. So now, the form updates THREE times, because the OnItemchanged event is called three times. I can reduce it to two times, but this shouldn't be happening at all I think.
The OnItemChanging event is called FOUR times, but that makes sense for this event.
Why is OnItemChanged not called ONE time, AFTER the item is changed?

Should I use another event?
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 
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 

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.