Microsoft
Software
Hardware
Network
Question : How to refresh the view in an SDI application
I have created a project using the MFC (Visual Studio 2005) SDI Doc/View architecture. In my single view, a have painted the entire client area black and am displaying some green text on it for display.
I would like to refresh this at a set frequency, using the WM_TIMER, to redraw the text that displays, constantly with updated values.
It looks like there is a WM_TIMER that I can get to my view class. But...now how do I indirectly call OnDraw() where my drawing code resides? Or, how to do I get an appropriate CDC like the one that is passed to OnDraw() so I can do the drawing in another function?
Thanks,
Answer : How to refresh the view in an SDI application
You can just call Invalidate() on your window during whichever even causes a need to refresh- this calls paint for you...
Random Solutions
spamming of my eventlog with an errormessage
Barracuda Message Archiver Outlook Add-in install with Group Policy
Activesync does not syncronise reminders
How to copy section of each field from Colm 1 to Colm 2 in excel
How can I change the identity property of a column without setting the wrong seed?
Building VC++ COM server to work with VB
What is difference between 2003 Standard and 2003 Datacenter servers?
MS Access Call to SQL Stored Proc with Return Value
Find computers in my network
ADO vs linked dsn