Currently, I'm trying to have a top-level window in Windows Forms with a custom frame (using DevExpress' SkinManager.EnableFormSkins
function) and still have a shadow around the window, when running on Windows 7 Aero.
The window currently looks like this:
and I want it to look like this:
(I.e. have a soft shadow around the window).
I did a lot of research and try-and-error, including using CS_DROPSHADOW
, asking the DevExpress support, reading on SO, other blogs and MSDN documentation.
Still, nothing brings a shadow to my window.
Although I think that my requirement simply is not possible to achieve, I still want to take the chance and ask here on SO.
(I even thought of faking this by having a native Aero window behind my actual window but failed to implement...)
My question is:
Is it possible to have a window with a custom-drawn non-client (NC) area and still get a shadow around this window when Aero is active?