Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

Bu6mAn

Repainting Controls after Loading Bitmap

This topic is 5745 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 there. I'm kind of new with C++ Programming, since i've allways programmed in Turbo Pascal & Delphi 5(object pascal), with a good comprehension of OOP. I'm just beggining to experiment with Windows Controls under C++, and i've got a problem when Loading a Bitmap using de Windows GDI functions. As i first run my APP that's simulating a ballistic shot, y load some background graphic with an R3 axis on it, just for testing. I also created a simple pushbutton in the main window. So far so good. But after i plot the trajectory of the object just plotting pixels onto the Device Context, when i want to "reset" the scene so another shot can be done, i just reload de background. When i do this at the message handling proc, the button goes away and isn't repainted. Any clues on how to handle this in an appropiate manner? Here i attach an image after the shot is done. If i press the button again, so the background is reloaded in order for the trajectory to be erased, the button goes away (it's still there, but not painted). [edited by - Bu6mAn on September 30, 2002 6:50:59 AM]

Share this post


Link to post
Share on other sites
Advertisement

  • Advertisement
×

Important Information

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

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!