I think you have two options:
- As you said, you can subclass and override
WM_NCPAINT, etc., to provide your own non-client area. - Alternatively, you can simply turn off the border styles in the edit control and make the parent window responsible for drawing the frame.
# 1 WM_NCCALCSIZE, (.. ), WM_NCPAINT, . WM_NCHITTEST. , , .
, , , №2. , , , , .
, WS_BORDER WS_EX_CLIENTEDGE , . , , WM_PAINT, . , WS_CLIPCHILDREN , .
, , , , .