Jump to content
  • Advertisement
Sign in to follow this  
froten_140

Paint function

This topic is 5004 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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.

Share this post


Link to post
Share on other sites
Advertisement
Well, the static control should be receiving WM_PAINT messages like any other window. Could you post the code for the control?

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!