I have a layered window set up in my MFC application. I have set up my own derivation of CDialog to allow me to customise various parts of how the window is rendered. Everything works fine right up until I start worrying about minimise and maximise.
If you click minimise or maximise then the window reacts exactly as you'd expect (ie...
i've created a layered window by adding the the WS_EX_LAYERED extended style:
wndClass.ExStyle = wndClass.ExStyle || WS_EX_LAYERED;
The window will use black as the chroma key color value. i've left a large surround of black to make the problem obvious:
After the window is constructed, i tell it to use black as a chroma-key color...
Looking at a Windows tooltips class hint window, i see that it draws its drop-shadow outside the hint window's actual rectangle.
Using SpyXX - i can get the tooltip's window rect, and class styles:
Rectangle: (440, 229)-(544, 249), 104x20
Restored Rect: (440, 229)-(544, 249), 104x20
Client Rect: (0, 0)-(104, 20), 104x20
You'...
I'm coding a custom background non rectangular window with buttons such as minimize and close in bitmaps.
Here is my code just for now
The problem is the custom window does not receive mouse messages while hovering over non zero alpha regions.
...