i.e. don't dynamically alloc shared data unless you are prepared to handle all multi-proc ownership issues.
The idea that I can be presented with a problem, set out to logically solve it with the tools at hand, and wind up with a program that could not be legally used because someone else followed the same logical steps some years ago and filed for a patent on it is horrifying.
- John Carmack
UpdateWindow just sends the WM_PAINT message to your app, it doesn't actually cause painting to happen. basically painting happens whenever your app has nothing else to do and your app gets around to processing the WM_PAINT message. that's not going to happen in the middle of a function (unless you're doing something like an old-school Message Pump between statements).
but, basically, there is no "erase" functionality. there is only draw. if you need to erase drawing A, you have to draw what was there before you drew A.
The most obvious reason for a new article to be deleted is that it did not pass moderation (i.e. was not considered to be of suitable quality for the site). Common mistakes include poor grammar, inadequate explanations and posting code snippets which duplicate MSDN content.
That being the case, I would suggest taking a good look at the article (you did keep a copy, didn't you?) and working out how to improve it. As a guideline, take a look at highly rated (say over 4.5) articles on the site to ee what is expected.
Once you consider it up to par, feel free to re-submit it.
My article was also deleted. I was hoping to use it as a future reference as well. God damn this site. It suck balls. Their article search is also FAIL. When you try to browse through articles, you'll see that the pages go on to infinity. I'm going to boycott this site now. I thought my articles would be able to help developers in the future too.
Last Visit: 31-Dec-99 19:00 Last Update: 30-Jan-23 18:57