Click here to Skip to main content
16,006,355 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralCopyFile help! Pin
Ryan McDermott11-May-04 4:34
Ryan McDermott11-May-04 4:34 
GeneralRe: CopyFile help! Pin
Rafael Fernández López11-May-04 4:54
Rafael Fernández López11-May-04 4:54 
GeneralRe: CopyFile help! Pin
Diddy11-May-04 5:51
Diddy11-May-04 5:51 
GeneralRe: CopyFile help! Pin
ThatsAlok3-May-05 22:12
ThatsAlok3-May-05 22:12 
GeneralNeed help on subclassing windows Pin
cnurse11-May-04 3:19
cnurse11-May-04 3:19 
GeneralRe: Need help on subclassing windows Pin
Hesham Amin11-May-04 4:12
Hesham Amin11-May-04 4:12 
GeneralRe: Need help on subclassing windows Pin
cnurse11-May-04 13:53
cnurse11-May-04 13:53 
GeneralList control events Pin
jhorstkamp11-May-04 2:54
jhorstkamp11-May-04 2:54 
All,

History:
I have a list control that I used the onclick event to perform action with.
The user wanted to be able to use the up/down arrows so I changed the event handler to use the itemchanged message.

Now:
The user wants to use both the mouse and the arrows - which is fine since the itemchanged message takes care of both of these actions. The problem being that the user also wants to be able to reperform (if that's a word)
the same actions (it's a function to do a lot of number crunching on some data) on the currently selected item. The problem is that the itemchanged message gets called 3 times and thus the number crunching takes place 3 times!
How do I get this to handle both mouse clicks and up/down arrows without having my function called 3 times?

Thanks in advance,

John


GeneralRe: List control events Pin
Monty211-May-04 3:02
Monty211-May-04 3:02 
GeneralRe: List control events Pin
Diddy11-May-04 3:11
Diddy11-May-04 3:11 
GeneralRe: List control events Pin
jhorstkamp11-May-04 8:13
jhorstkamp11-May-04 8:13 
GeneralRe: List control events Pin
Diddy26-May-04 2:46
Diddy26-May-04 2:46 
QuestionHow to make code block works faster? Pin
Kolich11-May-04 2:41
Kolich11-May-04 2:41 
AnswerRe: How to make code block works faster? Pin
Nitron11-May-04 2:56
Nitron11-May-04 2:56 
GeneralRe: How to make code block works faster? Pin
Kolich11-May-04 3:01
Kolich11-May-04 3:01 
GeneralRe: How to make code block works faster? Pin
Nitron11-May-04 3:09
Nitron11-May-04 3:09 
GeneralRe: How to make code block works faster? Pin
Kolich11-May-04 3:14
Kolich11-May-04 3:14 
GeneralRe: How to make code block works faster? Pin
Nitron11-May-04 3:26
Nitron11-May-04 3:26 
GeneralRe: How to make code block works faster? Pin
Kolich11-May-04 3:33
Kolich11-May-04 3:33 
GeneralRe: How to make code block works faster? Pin
toxcct11-May-04 4:51
toxcct11-May-04 4:51 
GeneralRe: How to make code block works faster? Pin
Nitron11-May-04 5:00
Nitron11-May-04 5:00 
GeneralRe: How to make code block works faster? Pin
toxcct11-May-04 5:03
toxcct11-May-04 5:03 
GeneralRe: How to make code block works faster? Pin
Nitron11-May-04 5:09
Nitron11-May-04 5:09 
GeneralRe: How to make code block works faster? Pin
toxcct11-May-04 5:14
toxcct11-May-04 5:14 
GeneralRe: How to make code block works faster? Pin
Nitron11-May-04 5:16
Nitron11-May-04 5:16 

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.