How to do that? I could not find any useful sample for C#. I know I should use SetClassLong/SetClassLongPtr, but here is the definition I only found: http://www.pinvoke.net/default.aspx/user32/SetClassLongPtr.html.
Obviously, I should call GetClassLongPtr with GCL_STYLE to read the current style flags, add or exclude CS_DROPSHADOW, and then call SetClassLongPtr with the changed flag value. But looking at that PInvoke definition, it is not trivial, especially taking into account 32/64-bit systems.
Can anybody give a link or a good example of this? And please, do not provide samples with overwriting CreateParams as this does not work for our dynamic scenario. Maybe, there is another [managed] way to do that?
Here is something I have managed to write:
Correct me if I’m wrong.