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
terminal services gateway server is temporarily unavailable
Excel Keep/Delete Records in Sheet1 that are in Sheet2
Menu accelerators not working
Cisco VPN client issue
Freeware Registry Editor for WIndows Mobile 6.1?
How to Detect Movement from a Datasheet to a SubDataSheet
Upgrade from MSSQL 2005 Express to MSSQL 2008 Standard
"Error 1327 Invalid Drive F:/" on Sprint USB Wireless Installation
How can I get the Start and End dates used in a seach to display on the report? MS RS 2005
In database mirroring. connection problem to failover partner when original principal is disconnectet