/// <summary>
        ///     Read the dialog control.
        /// </summary>
        /// <param name="lpRes">Pointer to the beginning of the dialog structure.</param>
        internal override IntPtr Read(IntPtr lpRes)
        {
            _header = (DialogExItemTemplate)Marshal.PtrToStructure(lpRes, typeof(DialogExItemTemplate));

            lpRes = new IntPtr(lpRes.ToInt32() + Marshal.SizeOf(_header));
            return(base.Read(lpRes));
        }
        /// <summary>
        ///     Read the dialog control.
        /// </summary>
        /// <param name="lpRes">Pointer to the beginning of the dialog structure.</param>
        internal override IntPtr Read(IntPtr lpRes)
        {
            _header = (DialogExItemTemplate)Marshal.PtrToStructure(lpRes, typeof (DialogExItemTemplate));

            lpRes = new IntPtr(lpRes.ToInt32() + Marshal.SizeOf(_header));
            return base.Read(lpRes);
        }