Click here to Skip to main content
15,889,484 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Can we create multiple message maps in a Dialog? Pin
Chris Meech17-Nov-11 5:39
Chris Meech17-Nov-11 5:39 
GeneralRe: Can we create multiple message maps in a Dialog? Pin
rahul.kulshreshtha17-Nov-11 6:08
rahul.kulshreshtha17-Nov-11 6:08 
GeneralRe: Can we create multiple message maps in a Dialog? Pin
Chuck O'Toole17-Nov-11 10:17
Chuck O'Toole17-Nov-11 10:17 
GeneralRe: Can we create multiple message maps in a Dialog? Pin
Erudite_Eric17-Nov-11 7:28
Erudite_Eric17-Nov-11 7:28 
AnswerRe: Can we create multiple message maps in a Dialog? Pin
Chuck O'Toole17-Nov-11 10:12
Chuck O'Toole17-Nov-11 10:12 
AnswerRe: Can we create multiple message maps in a Dialog? Pin
Chuck O'Toole17-Nov-11 10:10
Chuck O'Toole17-Nov-11 10:10 
GeneralRe: Can we create multiple message maps in a Dialog? Pin
rahul.kulshreshtha17-Nov-11 17:50
rahul.kulshreshtha17-Nov-11 17:50 
AnswerRe: Can we create multiple message maps in a Dialog? Pin
Chuck O'Toole17-Nov-11 18:10
Chuck O'Toole17-Nov-11 18:10 
Well, if that's the case then the interlock between the scroll and the update should be relatively easy to manage. The thread that is doing the updates (assuming you move the update code out of the message loop) grabs a "lock" (an EVENT) before updating the cells and releases it when it's finished. The "scroll" message processing grabs the same "lock" before processing the scroll and releases it after. Neither should collide.

I assume you have worked out the issues with having a stock symbols location moving between any two bursts of input data due to scrolling as you do have scrolling working at all.

So, as I said in a previous post, it would seem to be better to process and update the control in one process away from the GUI message loop, something you've tried before and saw a performance improvement (reduced cpu usage) and probably enhanced responsiveness to the updates.
GeneralRe: Can we create multiple message maps in a Dialog? Pin
Erudite_Eric17-Nov-11 21:10
Erudite_Eric17-Nov-11 21:10 
GeneralRe: Can we create multiple message maps in a Dialog? Pin
Roger Allen18-Nov-11 4:02
Roger Allen18-Nov-11 4:02 
GeneralRe: Can we create multiple message maps in a Dialog? Pin
Erudite_Eric18-Nov-11 5:39
Erudite_Eric18-Nov-11 5:39 
QuestionPrevent an property page to close Pin
_Flaviu17-Nov-11 0:54
_Flaviu17-Nov-11 0:54 
AnswerRe: Prevent an property page to close Pin
Chuck O'Toole17-Nov-11 2:57
Chuck O'Toole17-Nov-11 2:57 
QuestionRe: Prevent an property page to close Pin
David Crow17-Nov-11 8:44
David Crow17-Nov-11 8:44 
AnswerRe: Prevent an property page to close Pin
_Flaviu17-Nov-11 21:11
_Flaviu17-Nov-11 21:11 
Questionvideo(Playing using directx) refreshing Problem Pin
VCProgrammer16-Nov-11 21:21
VCProgrammer16-Nov-11 21:21 
AnswerRe: video(Playing using directx) refreshing Problem Pin
Code-o-mat17-Nov-11 4:23
Code-o-mat17-Nov-11 4:23 
QuestionOverlapped IO sockets sending and receiving at the same time Pin
jtlancer16-Nov-11 9:36
jtlancer16-Nov-11 9:36 
AnswerRe: Overlapped IO sockets sending and receiving at the same time Pin
Richard Andrew x6416-Nov-11 10:19
professionalRichard Andrew x6416-Nov-11 10:19 
GeneralRe: Overlapped IO sockets sending and receiving at the same time Pin
jtlancer16-Nov-11 11:51
jtlancer16-Nov-11 11:51 
GeneralRe: Overlapped IO sockets sending and receiving at the same time Pin
Mark Salsbery16-Nov-11 12:14
Mark Salsbery16-Nov-11 12:14 
GeneralRe: Overlapped IO sockets sending and receiving at the same time Pin
Richard Andrew x6416-Nov-11 12:50
professionalRichard Andrew x6416-Nov-11 12:50 
QuestionCSimpleDate and Visual Studio 2010 Pin
xyloweb16-Nov-11 4:39
xyloweb16-Nov-11 4:39 
AnswerRe: CSimpleDate and Visual Studio 2010 Pin
Chris Losinger16-Nov-11 4:54
professionalChris Losinger16-Nov-11 4:54 
SuggestionRe: CSimpleDate and Visual Studio 2010 Pin
David Crow16-Nov-11 5:03
David Crow16-Nov-11 5:03 

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.