Nevron.Interop.Win32 Namespace / NUxTheme Class / GetThemeMargins Method / GetThemeMargins(IntPtr,IntPtr,Int32,Int32,Int32,IntPtr,MARGINS) Method


In This Topic
    GetThemeMargins(IntPtr,IntPtr,Int32,Int32,Int32,IntPtr,MARGINS) Method
    In This Topic
    Syntax
    'Declaration
     
    
    Public Overloads Shared Function GetThemeMargins( _
       ByVal hTheme As System.IntPtr, _
       ByVal hdc As System.IntPtr, _
       ByVal partId As System.Integer, _
       ByVal stateId As System.Integer, _
       ByVal propId As System.Integer, _
       ByVal rect As System.IntPtr, _
       ByRef margins As NUxTheme.MARGINS _
    ) As System.Integer
    'Usage
     
    
    Dim hTheme As System.IntPtr
    Dim hdc As System.IntPtr
    Dim partId As System.Integer
    Dim stateId As System.Integer
    Dim propId As System.Integer
    Dim rect As System.IntPtr
    Dim margins As NUxTheme.MARGINS
    Dim value As System.Integer
     
    value = NUxTheme.GetThemeMargins(hTheme, hdc, partId, stateId, propId, rect, margins)
    public static System.int GetThemeMargins( 
       System.IntPtr hTheme,
       System.IntPtr hdc,
       System.int partId,
       System.int stateId,
       System.int propId,
       System.IntPtr rect,
       out NUxTheme.MARGINS margins
    )

    Parameters

    hTheme
    hdc
    partId
    stateId
    propId
    rect
    margins
    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also