I am using c++ Visual Studio Express and have written an application that allows a user to enter a value which updates a register in a chip. The register write is done via USB to the chip on a local PCB. I also have written some code to monitor the value of a different chip register in real time. However, I have noticed that the window only updates when a button on it is clicked or when scrolling across it.
Is there a way to get the window to update it's text display? Every second will do.
Since you are monitoring a hardware variable, I guess there's no trigger and you simply want to poll the value every second. I'd say you need a timer. Use SetTimer() to set up a one-second timer. As kbw says, it might be important to InvalidateRect(). Depends on the method of display. If it is a Windows control, it should not be needed. Maybe all you need is the timer.