简体   繁体   中英

Transparent non-client area

I am creating a TextBox control subclass using Windows Forms. I am using the WM_NCCALCSIZE to change the client area (to enlarge the non-client area) but I have not found any solution on how to make the non-client area transparent. Is there any simple way to paint to non-client area in WM_NCPAINT in transparent way to duplicate the underlying window's background in intersecting region of the child control?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM