示例#1
0
        /// <summary>
        /// Constructor
        /// </summary>
        /// <param name="toolFlags">Tool tip flags</param>
        /// <param name="handle">The handle of the owner</param>
        internal TOOLINFO(int toolFlags, IntPtr handle)
        {
            cbSize = Marshal.SizeOf(typeof(TOOLINFO));
            flags = toolFlags;
            uId = handle;

            // Not needed but it shuts the compiler up
            hwnd = hinst = lparam = IntPtr.Zero;
            rect = new RECT(0, 0, 0, 0);
            text = null;
        }
 internal static extern int DrawThemeParentBackground(IntPtr hWnd, IntPtr hDC, ref RECT rect);
 internal static extern int DrawThemeBackground(IntPtr hTheme, IntPtr hDC, int partId, int stateId,
     ref RECT rect, ref RECT clipRect);