A Journey 2 Eternity

BE CAREFUL!!!

Posted on: April 15, 2008

(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.

Advertisements
Tags:

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Pages

Categories

April 2008
M T W T F S S
« Mar   Aug »
 123456
78910111213
14151617181920
21222324252627
282930  

Blog Stats

  • 27,491 hits
%d bloggers like this: