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

C / C++ / MFC

 
GeneralRe: CScrollView with a lot of flickering Pin
MAAK10-Mar-03 21:40
MAAK10-Mar-03 21:40 
GeneralRe: CScrollView with a lot of flickering Pin
73Zeppelin12-Mar-03 2:59
73Zeppelin12-Mar-03 2:59 
GeneralRe: CScrollView with a lot of flickering Pin
djordj12-Mar-03 7:59
djordj12-Mar-03 7:59 
GeneralRe: CScrollView with a lot of flickering Pin
73Zeppelin13-Mar-03 4:07
73Zeppelin13-Mar-03 4:07 
GeneralGet User Actions While Background Thread Executes Pin
Robert Palma Jr.10-Mar-03 11:43
Robert Palma Jr.10-Mar-03 11:43 
GeneralRe: Get User Actions While Background Thread Executes Pin
Dave Bryant10-Mar-03 12:42
Dave Bryant10-Mar-03 12:42 
GeneralRe: Get User Actions While Background Thread Executes Pin
Robert Palma Jr.11-Mar-03 8:55
Robert Palma Jr.11-Mar-03 8:55 
GeneralRe: Get User Actions While Background Thread Executes Pin
Dave Bryant11-Mar-03 9:01
Dave Bryant11-Mar-03 9:01 
What's happening is your background thread isn't doing the processing at all. It is sending a message to the main thread, telling it to do the operation. Since the main thread is now busy doing the intensive operation, it obviously cannot respond to user input. In addition, SendMessage() is a blocking call, so your worker thread is suspended during this as well.

Change the intensive processing to happen inside the worker thread, and it should post (not send) a message to the main thread whenever it needs to update the display. This will keep the main thread free to process user input, but still only have one thread modifying the display at a time.

Dave
GeneralRe: Get User Actions While Background Thread Executes Pin
Robert Palma Jr.11-Mar-03 9:47
Robert Palma Jr.11-Mar-03 9:47 
GeneralRe: Get User Actions While Background Thread Executes Pin
Dave Bryant11-Mar-03 9:52
Dave Bryant11-Mar-03 9:52 
GeneralRe: Get User Actions While Background Thread Executes Pin
Robert Palma Jr.12-Mar-03 6:15
Robert Palma Jr.12-Mar-03 6:15 
GeneralRe: Get User Actions While Background Thread Executes Pin
Dave Bryant12-Mar-03 8:12
Dave Bryant12-Mar-03 8:12 
GeneralRe: Get User Actions While Background Thread Executes Pin
TomKat14-Mar-03 16:12
TomKat14-Mar-03 16:12 
GeneralRe: Get User Actions While Background Thread Executes Pin
Robert Palma Jr.15-Mar-03 5:38
Robert Palma Jr.15-Mar-03 5:38 
Questionconfirmation please: a char is 8 bits??? Pin
Kuniva10-Mar-03 10:54
Kuniva10-Mar-03 10:54 
AnswerRe: confirmation please: a char is 8 bits??? Pin
valikac10-Mar-03 11:00
valikac10-Mar-03 11:00 
GeneralRe: confirmation please: a char is 8 bits??? Pin
Kuniva10-Mar-03 11:01
Kuniva10-Mar-03 11:01 
AnswerRe: confirmation please: a char is 8 bits??? Pin
Michael Dunn10-Mar-03 11:02
sitebuilderMichael Dunn10-Mar-03 11:02 
AnswerRe: confirmation please: a char is 8 bits??? Pin
Robert Palma Jr.10-Mar-03 11:36
Robert Palma Jr.10-Mar-03 11:36 
AnswerRe: confirmation please: a char is 8 bits??? Pin
RaajaOfSelf10-Mar-03 17:23
RaajaOfSelf10-Mar-03 17:23 
Questionstd::stack iterator ? Pin
Maximilien10-Mar-03 10:46
Maximilien10-Mar-03 10:46 
AnswerRe: std::stack iterator ? Pin
valikac10-Mar-03 11:02
valikac10-Mar-03 11:02 
AnswerRe: std::stack iterator ? Pin
Taka Muraoka10-Mar-03 16:10
Taka Muraoka10-Mar-03 16:10 
QuestionHow do I modify a BSTR type string? Pin
dazinith10-Mar-03 10:27
dazinith10-Mar-03 10:27 
AnswerRe: How do I modify a BSTR type string? Pin
Brian Shifrin10-Mar-03 12:53
Brian Shifrin10-Mar-03 12:53 

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.