Skip to content

cyotek/ncpaintDemo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Painting the borders of a custom control using WM_NCPAINT

The sample application

This repository contains a C# WinForms sample application that demonstrates using the WS_BORDER and WS_EX_CLIENTEDGE styles to apply an automatic border, but that also intercepts the WM_NCPAINT and WM_NCCALCSIZE messages in order to custom paint those borders.

For more information, please see the following article on the Cyotek blog:

About

Using the WM_NCPAINT and WM_NCCALCSIZE messages in a C# Windows Forms application

Topics

Resources

License

Stars

Watchers

Forks

Languages