Skip to main content
gamedev.net
🔒 Locked

Paint function

Started by froten_140 0 replies 650+ views
Original Post
froten_140
froten_140
Hi' I'm trying to make a program that plots an array of data as a curve. The program is dialog based project in VC6. I used a static control to use its rectangle as my curve window, and used the function OnPaint() of my dialog to draw the curve when it needs to be redrawn. My problem is that, when the dialog is covered by another window, the OnPaint() function does not update the covered portion pf the static control that have the curve. Could any body please help me to make my curve updated every time the dialog is covered. Thanx in advance for any help.
Strayfire
Strayfire
Well, the static control should be receiving WM_PAINT messages like any other window. Could you post the code for the control?

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.