| Shatronics (80) | |||
|
Hi, I have a pop-up window that is centered in my main application. Its purpose is to display an image with some fade-in/fade-out properties. I would like to have it to drop a shadow, so it's easier to see its dimension. But I had no luck. I tried with CS_DROPSHADOW, but it has no effect. Is it possible to do, or do I need to draw it myself? Here is the window initialization code:
Regards, Simon H.A. | |||
|
|
|||
| modoran (1245) | |
|
You should use SetLayeredWindowAttributes function: http://msdn.microsoft.com/en-us/library/windows/desktop/ms633540(v=vs.85).aspx | |
|
|
|
| Shatronics (80) | |
| It's not the transparency I'm having trouble with. I just want a shadow drop like you have with regular windows. | |
|
|
|
| EssGeEich (1007) | |
| You should stick with UpdateLayeredWindow and draw your own shadow yourself, or discard the layered in favour of regions which also allow for 1bit transparency | |
|
Last edited on
|
|
| Shatronics (80) | |
|
Okay, I'll just do the shadow myself. Thanks for the answers. Regards, Simon H.A. | |
|
|
|