Hello. Trying to create buttons with dynamic text. Update text should occur every minute. The screenshot shows the places where this text will be.
I update the text via WM_PAINT in the callback function of the buttons. To call WM_PAINT, I do WM_InvalidateRect (), where I pass text coordinates inside the button and pass a pointer to the button object.
But there is a redrawing of the entire screen, and as a result - flicker.
Question: how to prevent redrawing the entire screen? How to update part of the button / screen?
I update the text via WM_PAINT in the callback function of the buttons. To call WM_PAINT, I do WM_InvalidateRect (), where I pass text coordinates inside the button and pass a pointer to the button object.
But there is a redrawing of the entire screen, and as a result - flicker.
Question: how to prevent redrawing the entire screen? How to update part of the button / screen?