Beispiel #1
0
        internal CustomWindowsManager(ProxyWindow proxy, IntPtr hwndParent)
        {
            _hwnd        = proxy.RealWindow;
            _hwndParent  = hwndParent;
            _proxyWindow = proxy;//Just keep it alive
            _proxyWindow.WindowsManager = this;

            Windows7Taskbar.EnableCustomWindowPreview(WindowToTellDwmAbout);
        }
Beispiel #2
0
 /// <summary>
 /// Enables window preview features for this window.
 /// Window preview feature are enabled by default, unless disabled
 /// by the use of the <see cref="DisablePreview"/> method.
 /// </summary>
 public void EnablePreview()
 {
     Windows7Taskbar.EnableCustomWindowPreview(WindowToTellDwmAbout);
 }
Beispiel #3
0
 /// <summary>
 /// Creates a new instance of this class using the
 /// specified window handle and enables custom window
 /// preview on the window.
 /// </summary>
 /// <param name="hwnd">The window handle.</param>
 internal CustomWindowsManager(IntPtr hwnd)
 {
     _hwnd = hwnd;
     Windows7Taskbar.EnableCustomWindowPreview(hwnd);
 }