GetDC vs BeginPaint
This is a simple question (I think): when should I use GetDC/ReleaseDC and when should I use BeginPaint/EndPaint? I'm a little confused about the difference... Thanks in advance!!!1
Shishio,
Use BeginPaint/EndPaint only within a WM_PAINT message handler. Otherwise, use GetDC/ReleaseDC.
Use BeginPaint/EndPaint only within a WM_PAINT message handler. Otherwise, use GetDC/ReleaseDC.
BeginPaint, unlike GetDC will hide the Caret (if there is any), Restrict drawing only to the Invalid Region and Validate the Region for you. I think it does a couple more things but that's what I know so far.
relient.
relient.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement