Prevent Win32 from drawing classic title bar
问题 I wanted to add a nice shadow to my borderless form, and the best way I found to do it with minimal performance loss is to use DwmExtendFrameIntoClientArea. However, this seems to be causing Windows to draw a classic title bar over the window, but it is non-functional (ie. the glitch is merely graphical). This is the code I am using: int v = (int) DWMNCRENDERINGPOLICY.DWMNCRP_ENABLED; NativeApi.DwmSetWindowAttribute(Handle, DwmWindowAttribute.NCRENDERING_POLICY, ref v, sizeof(int)); int