Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need help drawing shapes to window/dialog!

Status
Not open for further replies.

qedusa

Programmer
Jan 12, 2002
43
US
I'm having serious trouble drawing simple shapes to a dialog repeatedly. I can draw a shape no problem but if I keep drawing shapes, etc to the same window repeatedly (in a while loop for example) it eventually stops with a 'half' message: "A resource was not"!!!
What does this mean? Why can't I keep drawing stuff to the same window?
Any help would be appreciated.
 
Hi

Such problems arise when you do not release a Windows resource once you do not need it anymore.
Look at your code and try to find out something required for your drawing ( a brush, a pen, a CDC) and check if all is released accordingly

HTH

Thierry
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top