Tuesday, April 15, 2008

BE CAREFUL!!!

(01) Always write optimize and good code in WM_PAINT, WM_MOUSEMOVE and WM_CTLCOLOR event handler. In these three event handlers is always called and it’s tough to debug if any bug exists.

(02) When you got the device context by GetDC() api, you must make sure to release the device context by ReleaseDC() api after painting.

No comments: