Esempio n. 1
0
        /// <summary>
        /// Creates a new thumbnail given a destination form handle and a source form handle
        /// </summary>
        /// <param name="hwndDestination">Handle of the form where the thumbnail will appear</param>
        /// <param name="hwndSource">Handle of the form for which the thumbnail is created</param>
        public Thumbnail(IntPtr hwndDestination, IntPtr hwndSource)
        {
            // Native API call
            handle = DwmRegisterThumbnail(hwndDestination, hwndSource);

            // Initialize properties structure
            properties = new ThumbnailProperties();
        }
Esempio n. 2
0
        /// <summary>
        /// Creates a new thumbnail given a destination form handle and a source form handle
        /// </summary>
        /// <param name="hwndDestination">Handle of the form where the thumbnail will appear</param>
        /// <param name="hwndSource">Handle of the form for which the thumbnail is created</param>
        public Thumbnail(IntPtr hwndDestination, IntPtr hwndSource)
        {
            // Native API call
            handle = DwmRegisterThumbnail(hwndDestination, hwndSource);

            // Initialize properties structure
            properties = new ThumbnailProperties();
        }
Esempio n. 3
0
 private static extern void DwmUpdateThumbnailProperties(IntPtr hThumbnailId, ref ThumbnailProperties ptnProperties);
Esempio n. 4
0
 private static extern void DwmUpdateThumbnailProperties(IntPtr hThumbnailId, ref ThumbnailProperties ptnProperties);