Beispiel #1
0
        // ------------------------------------------------------
        //
        //  Constructors
        //
        //------------------------------------------------------

        #region Constructors

        internal ThemePart(IntPtr hwnd, string sClass)
        {
            if (Environment.OSVersion.Version.Major >= 5)
            {
                _hTheme = new SafeThemeHandle(OpenThemeData(hwnd, sClass), false);
            }
            else
            {
                _hTheme = new SafeThemeHandle(IntPtr.Zero, false);
            }
        }
        // ------------------------------------------------------
        //
        //  Constructors
        //
        //------------------------------------------------------

        #region Constructors

        internal ThemePart (IntPtr hwnd, string sClass)
        {
            if (Environment.OSVersion.Version.Major >= 5)
            {
                _hTheme = new SafeThemeHandle(OpenThemeData(hwnd, sClass), false);
            }
            else
            {
                _hTheme = new SafeThemeHandle(IntPtr.Zero, false);
            }
        }
 private static unsafe extern IntPtr GetThemePartSize(SafeThemeHandle hTheme, IntPtr hdc, int iPartId, int iStateId, IntPtr prc, int eSize, NativeMethods.SIZE* psz);
Beispiel #4
0
 private static unsafe extern IntPtr GetThemePartSize(SafeThemeHandle hTheme, IntPtr hdc, int iPartId, int iStateId, IntPtr prc, int eSize, NativeMethods.SIZE *psz);