Click here to Skip to main content
16,005,181 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionhelp on window on be set in always actvie ? Pin
icemelt(newbie)28-Feb-07 15:00
icemelt(newbie)28-Feb-07 15:00 
AnswerRe: help on window on be set in always actvie ? Pin
Xing Chen28-Feb-07 16:07
Xing Chen28-Feb-07 16:07 
GeneralRe: help on window on be set in always actvie ? Pin
icemelt(newbie)28-Feb-07 17:23
icemelt(newbie)28-Feb-07 17:23 
GeneralRe: help on window on be set in always actvie ? Pin
Xing Chen28-Feb-07 17:32
Xing Chen28-Feb-07 17:32 
QuestionScreen Fails to Refresh after another Pgm Paints Pin
syscwl28-Feb-07 13:56
syscwl28-Feb-07 13:56 
QuestionRe: Screen Fails to Refresh after another Pgm Paints Pin
Mark Salsbery28-Feb-07 14:12
Mark Salsbery28-Feb-07 14:12 
AnswerRe: Screen Fails to Refresh after another Pgm Paints Pin
syscwl28-Feb-07 14:52
syscwl28-Feb-07 14:52 
GeneralRe: Screen Fails to Refresh after another Pgm Paints Pin
Mark Salsbery28-Feb-07 15:04
Mark Salsbery28-Feb-07 15:04 
OnPaint is virtual? I thought there needed to be a message map entry for WM_PAINT for the window
class.

Anyway, if your painting works fine when you don't do any lengthy processes in the background, but
when you have something going on in the background it stops painting then that probably means
your message loop is tied up.

Possible ways to correct this are:
1) do lengthy operations on a separate thread
2) Periodically pump all messages from the message queue while doing a lengthy process on the UI
thread.
3) Use Invalidate()/UpdateWindow() to force an instant WM_PAINT message (bypassing the queue)
(this doesn't really help in your case because you don't know when you need to repaint).

It should be trivial, yes, but not if you're UI thread is off doing something else Smile | :)

Mark




"Great job, team. Head back to base for debriefing and cocktails."
(Spottswoode "Team America")

QuestionEasy Question Pin
arbster128-Feb-07 12:24
arbster128-Feb-07 12:24 
AnswerRe: Easy Question Pin
Stephen Hewitt28-Feb-07 12:27
Stephen Hewitt28-Feb-07 12:27 
QuestionImportant question regarding Window kernel Pin
parth_00728-Feb-07 11:37
parth_00728-Feb-07 11:37 
AnswerRe: Important question regarding Window kernel Pin
Mark Salsbery28-Feb-07 14:20
Mark Salsbery28-Feb-07 14:20 
QuestionText Box Pin
ScotDolan28-Feb-07 11:18
ScotDolan28-Feb-07 11:18 
AnswerRe: Text Box Pin
Mark Salsbery28-Feb-07 14:25
Mark Salsbery28-Feb-07 14:25 
QuestionPLEASE HELP :( Pin
İsmail Durmaz28-Feb-07 10:41
İsmail Durmaz28-Feb-07 10:41 
AnswerRe: PLEASE HELP :( Pin
Christian Graus28-Feb-07 10:49
protectorChristian Graus28-Feb-07 10:49 
GeneralRe: PLEASE HELP :( Pin
İsmail Durmaz28-Feb-07 10:52
İsmail Durmaz28-Feb-07 10:52 
GeneralRe: PLEASE HELP :( Pin
Christian Graus28-Feb-07 14:47
protectorChristian Graus28-Feb-07 14:47 
GeneralRe: PLEASE HELP :( Pin
Mark Salsbery28-Feb-07 14:26
Mark Salsbery28-Feb-07 14:26 
QuestionCant slow the program down Pin
Spartan1628-Feb-07 8:27
Spartan1628-Feb-07 8:27 
AnswerRe: Cant slow the program down Pin
David Crow28-Feb-07 8:31
David Crow28-Feb-07 8:31 
GeneralRe: Cant slow the program down Pin
Spartan1628-Feb-07 8:37
Spartan1628-Feb-07 8:37 
GeneralRe: Cant slow the program down Pin
David Crow28-Feb-07 8:45
David Crow28-Feb-07 8:45 
GeneralRe: Cant slow the program down Pin
Spartan1628-Feb-07 8:51
Spartan1628-Feb-07 8:51 
GeneralRe: Cant slow the program down Pin
David Crow28-Feb-07 8:53
David Crow28-Feb-07 8: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.