Which is more appropriate and why?
Posted on 2004-09-02
In my never ending quest to better understand this language, just a simple question on which of the two snippets of code is "more appropriate" and why..
The class is derived from CSliderCtrl, just a customized UI widget and we're talking about OnPaint()
CDC* dc = BeginPaint(&lpPaint);
DrawProgress(dc); // custom draws UI element.
both work just fine, is there any reason one is "better" than the other?