Click here to Skip to main content
15,919,422 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRe: different %f for variables in a string Pin
Mark Salsbery15-Jul-07 9:30
Mark Salsbery15-Jul-07 9:30 
AnswerRe: different %f for variables in a string Pin
Dane Grant15-Jul-07 9:35
Dane Grant15-Jul-07 9:35 
GeneralRe: different %f for variables in a string Pin
Mark Salsbery15-Jul-07 9:45
Mark Salsbery15-Jul-07 9:45 
GeneralRe: different %f for variables in a string Pin
David Crow16-Jul-07 4:30
David Crow16-Jul-07 4:30 
Questionplotting in real time Pin
Sam Rens15-Jul-07 8:50
Sam Rens15-Jul-07 8:50 
QuestionRe: plotting in real time Pin
Mark Salsbery15-Jul-07 9:35
Mark Salsbery15-Jul-07 9:35 
AnswerRe: plotting in real time Pin
Sam Rens15-Jul-07 9:43
Sam Rens15-Jul-07 9:43 
GeneralRe: plotting in real time Pin
Mark Salsbery15-Jul-07 9:51
Mark Salsbery15-Jul-07 9:51 
How you plot depends on what you want to see...

You showed what looks like a window procedure - Is the value being delived at regular intervals
through a window message?

The basic steps for drawing to a window are:

Create or obtain a device context (DC)
Set up the DC for drawing - select the appropriate pen/brush/font into the DC
Do the drawing
Restore the DC's original pen/brush/font
Free the DC

You can do all this in response to the WM_PAINT message.

When the value changes, invalidate the rectangle or region that you want redrawn and call
UpdateWindow() to force a WM_PAINT to be sent immediately.

Mark


Mark Salsbery
Microsoft MVP - Visual C++


"Great job team! Head back to base for debriefing and cocktails."

GeneralRe: plotting in real time Pin
Sam Rens15-Jul-07 9:57
Sam Rens15-Jul-07 9:57 
GeneralRe: plotting in real time Pin
Mark Salsbery15-Jul-07 10:04
Mark Salsbery15-Jul-07 10:04 
Questioncreating dialogs with winapi Pin
Dane Grant15-Jul-07 6:48
Dane Grant15-Jul-07 6:48 
QuestionRe: creating dialogs with winapi Pin
Mark Salsbery15-Jul-07 6:51
Mark Salsbery15-Jul-07 6:51 
AnswerRe: creating dialogs with winapi Pin
Paul Conrad15-Jul-07 6:52
professionalPaul Conrad15-Jul-07 6:52 
AnswerRe: creating dialogs with winapi Pin
Dane Grant15-Jul-07 6:53
Dane Grant15-Jul-07 6:53 
GeneralRe: creating dialogs with winapi Pin
Dane Grant15-Jul-07 6:57
Dane Grant15-Jul-07 6:57 
GeneralRe: creating dialogs with winapi Pin
Mark Salsbery15-Jul-07 7:00
Mark Salsbery15-Jul-07 7:00 
GeneralRe: creating dialogs with winapi Pin
Mark Salsbery15-Jul-07 6:59
Mark Salsbery15-Jul-07 6:59 
GeneralRe: creating dialogs with winapi Pin
Dane Grant15-Jul-07 7:01
Dane Grant15-Jul-07 7:01 
JokeRe: creating dialogs with winapi Pin
David Crow16-Jul-07 4:32
David Crow16-Jul-07 4:32 
GeneralRe: creating dialogs with winapi Pin
Mark Salsbery16-Jul-07 5:11
Mark Salsbery16-Jul-07 5:11 
AnswerRe: creating dialogs with winapi Pin
Hamid_RT15-Jul-07 7:16
Hamid_RT15-Jul-07 7:16 
QuestionHow to resolve such problems in VC2005? Pin
kcynic15-Jul-07 6:32
kcynic15-Jul-07 6:32 
AnswerRe: How to resolve such problems in VC2005? Pin
Mark Salsbery15-Jul-07 6:47
Mark Salsbery15-Jul-07 6:47 
QuestionHow to config DirectX SDK in VC2005 Pin
kcynic15-Jul-07 5:25
kcynic15-Jul-07 5:25 
AnswerRe: How to config DirectX SDK in VC2005 Pin
kcynic15-Jul-07 5:57
kcynic15-Jul-07 5:57 

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.