joeycalisay
1/13/2005 9:29:00 AM
Mr. Powell suggests to use CreateGraphics outside Paint eventhandler,
OnPaint, OnPaintBackGround in order to obtain the graphics object. At
WndProc method, one can grab a graphics object from the handle of the
control's window (GetWindowDC). When I am handling the WM_NCPAINT message,
what will be the difference of using CreateGraphics and obtaining it from
the Window Handle of the control to draw my custom non-client border?
I think I bumped before on the idea that it will be better to obtain it
using GetWindowDC but I can't seem to find the document that I've read
before. Anyone who can shed a light on this?
Thanks a lot!