Q:

about custom window title bar in win32 programming

How to prevent paint client area in wm_ncpaint. 

A:

AFAIK during processing of WM_NCPAINT the client area isn't painted.
Did you mean title bar (instead of client area)? If so - it seems you should process the WM_NCPAINT in your custom way, doing what's necessary.

