Click here to Skip to main content
15,902,635 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: how to use "OnNewDocument" from cview or cmainframe class Pin
Mark Salsbery5-Jul-07 6:53
Mark Salsbery5-Jul-07 6:53 
QuestionC++ data structures Pin
tom groezer4-Jul-07 8:54
tom groezer4-Jul-07 8:54 
AnswerRe: C++ data structures Pin
Maximilien4-Jul-07 9:06
Maximilien4-Jul-07 9:06 
QuestionRe: C++ data structures Pin
David Crow5-Jul-07 3:15
David Crow5-Jul-07 3:15 
QuestionCString::Replace Problem [modified] Pin
lparsonson4-Jul-07 5:58
lparsonson4-Jul-07 5:58 
AnswerRe: CString::Replace Problem Pin
Mark Salsbery4-Jul-07 7:02
Mark Salsbery4-Jul-07 7:02 
GeneralRe: CString::Replace Problem Pin
lparsonson5-Jul-07 4:54
lparsonson5-Jul-07 4:54 
QuestionCStatic drawing interrupted... Worker, UI Threads???? Pin
Greg Ellis4-Jul-07 5:41
Greg Ellis4-Jul-07 5:41 
Hey Guys,

I have an MFC CStatic derived class that has a public member function Draw();. Draw uses GDI to draw stuff to the CStatic window. I call this Draw method from a multimedia timer (timeSetEvent) to continually update the display.

My problems is that When my main app is doing a lot of work the drawing is sometimes interrupted when I load files. So I put the lengthy process of loading files in a worker thread, but the drawing is still "jerky" when loading a file. Is there anything else I can do to ensure that my CStatic is always drawing? Is this something I need a user interface thread for?

Thanks,
Greg
AnswerRe: CStatic drawing interrupted... Worker, UI Threads???? Pin
Matthew Faithfull4-Jul-07 6:27
Matthew Faithfull4-Jul-07 6:27 
GeneralRe: CStatic drawing interrupted... Worker, UI Threads???? Pin
Greg Ellis4-Jul-07 6:35
Greg Ellis4-Jul-07 6:35 
GeneralRe: CStatic drawing interrupted... Worker, UI Threads???? Pin
Matthew Faithfull4-Jul-07 6:55
Matthew Faithfull4-Jul-07 6:55 
AnswerRe: CStatic drawing interrupted... Worker, UI Threads???? [modified] Pin
Mark Salsbery4-Jul-07 7:08
Mark Salsbery4-Jul-07 7:08 
QuestionOnSize Assertion Error Pin
sdancer754-Jul-07 5:11
sdancer754-Jul-07 5:11 
AnswerRe: OnSize Assertion Error Pin
Arman S.4-Jul-07 5:19
Arman S.4-Jul-07 5:19 
GeneralRe: OnSize Assertion Error Pin
sdancer754-Jul-07 22:56
sdancer754-Jul-07 22:56 
AnswerRe: OnSize Assertion Error Pin
Hamid_RT4-Jul-07 19:28
Hamid_RT4-Jul-07 19:28 
Questionneed your suggestion for data expression Pin
includeh104-Jul-07 4:56
includeh104-Jul-07 4:56 
QuestionRe: need your suggestion for data expression Pin
David Crow5-Jul-07 3:25
David Crow5-Jul-07 3:25 
Questionwriting to a port Pin
lovneet4-Jul-07 4:40
lovneet4-Jul-07 4:40 
AnswerRe: writing to a port Pin
CPallini4-Jul-07 4:48
mveCPallini4-Jul-07 4:48 
GeneralRe: writing to a port Pin
lovneet4-Jul-07 6:17
lovneet4-Jul-07 6:17 
GeneralRe: writing to a port Pin
CPallini4-Jul-07 9:07
mveCPallini4-Jul-07 9:07 
AnswerRe: writing to a port Pin
David Crow5-Jul-07 3:27
David Crow5-Jul-07 3:27 
AnswerRe: writing to a port Pin
khan++5-Jul-07 3:49
khan++5-Jul-07 3:49 
Questionlower and higher part of a variable Pin
Dobromir Dimitrov4-Jul-07 4:32
Dobromir Dimitrov4-Jul-07 4:32 

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.