How do I convert the following? I'm porting a vb 6 app to vb .net.
Public Property Get Width() As Long
Width = m_lWidth
End Property
Public Property Let Width(ByVal value As Long)
m_lWidth = value
End Property
Public Property Get Height() As Long
Height = m_lHeight
End Property
Public Property Let Height(ByVal value As Long)
m_lHeight = value
End Property
Public Property Get PartHeight(Optional ByVal eWidthOptions As THEMESIZE = TS_TRUE) As Long
Dim tSize As SIZE
Dim tR As RECT
Dim hTheme As Long
Dim lR As Long
hTheme = OpenThemeData(m_hWnd, StrPtr(m_sClass))
If (hTheme) Then
lR = GetThemePartSize(hTheme, m_hDC, m_lPartId, m_lStateId, tR, eWidthOptions, tSize)
If (lR = S_OK) Then
PartHeight = tSize.cY
Else
pFailed "Failed to read part size for class '" & m_sClass & "', partId=" & m_lPartId & ", stateId=" & m_lStateId, lR
End If
CloseThemeData hTheme
Else
pFailed "No theme data for class '" & m_sClass & "'", Err.LastDllError
End If
End Property
Thanks
I'm trying to port: http://www.vbaccelerator.com/home/vb/code/libraries/xp_visual_styles/drawing_with_xp_visual_styles/VB6_Theme_Explorer.asp