If I want to draw a personalized border around an edit control, do I have to set it to CS_PARENTDC and draw in its parent window?
Thanks
Posted on 2005-05-26 00:24:08 by Marginais
You can process WM_NCPAINT messages. Check out MSDN for details:

http://msdn.microsoft.com/library/en-us/gdi/pantdraw_8gdw.asp

If you also want the border to be drawn outside the limits of the control's size, then you will need CS_PARENTDC.

Hope that helps! :)
Posted on 2005-05-26 17:44:54 by QvasiModo
This seems like exactly what i been looking to do but included inside of an dll.  How would you stop painting of a window borders than to do what i need to do in the background than release it so it can continue executing.  This is my first dll and working only from an recent idea by seaching the board.  Could you check out my post about manipulation.


Posted on 2005-05-27 05:22:58 by ib386