I have a c++ class, MyDialog, deriving from CDialog, where I have removed the Windows frame and thereby the Windows generated shadow.
I would like to add the shadow again, without adding the frame. I have found there is a class style CS_DROPSHADOW that can be applied. But I cannot find how to apply it.
I have found a method ModifyStyle but it only modifies the WS_... styles, not the CS_... styles.
How do I apply the class style CS_DROPSHADOW?
My colleague helped me to register a class with the class style like this:
where
WC_DIALOGis the class for the regularCDialog.This class is then used in the resource file where my dialog is defined:
This added a shadow, which is good. But not the aero shadow I was looking for though.
More answers welcome!