Hi all,
i ran into a problem while developing my own custom WPF Aero Window.
I created a custom WPF control derived from Window I created a Generic Template (for XP an Non-Aero-Clients) and i set the WindowStyle to None and the ResizeMode to CanResize. I designed my own title bar. Everything fine.
At the moment i'm doing the same for an Aero Template. I also set the WindowStyle to None and the ResizeMode to CanResize. With the DwmIsCompositionEnabled out of the dwmapi.dll i extend the Frame into the client area. I designed my own title bar. Everything fine except of an ugly repaint problem (seepicture). If i start an the window has focus everything fine. If the window is loosing the focus i get a ugly white border around the window. Sending a WM_PAINT or WM_NCPAINT message doesnt help. Only if i hit my custom buttons in the title bar the white border is going away (since the next time the window is loosing the focus).
Has anyone any ideas?
Best regards Carsten!