F
Faraz Azhar
Hello
I just migrated from VB6 to VB2008 Express. Im getting along pretty
well, just stuck at one place.
I have a custom usercontrol on VB6 in which I access the uxtheme.dll
library APIs to draw some XP controls on my usercontrol. Now I trying
to do this in VB2008.
For example, to draw XP styles, you first have to open the theme data,
using following API
Private Function OpenThemeData Lib "uxtheme.dll" (ByVal hwnd As Long,
ByVal pszClassList As Long) As Long
Then I call OpenThemeData for extracting theme details and then later
I would call DrawThemeBackground and other APIs to draw.
Now how to achieve this in VB2008? How do I declare functions that
link to uxtheme.dll ?
I just migrated from VB6 to VB2008 Express. Im getting along pretty
well, just stuck at one place.
I have a custom usercontrol on VB6 in which I access the uxtheme.dll
library APIs to draw some XP controls on my usercontrol. Now I trying
to do this in VB2008.
For example, to draw XP styles, you first have to open the theme data,
using following API
Private Function OpenThemeData Lib "uxtheme.dll" (ByVal hwnd As Long,
ByVal pszClassList As Long) As Long
Then I call OpenThemeData for extracting theme details and then later
I would call DrawThemeBackground and other APIs to draw.
Now how to achieve this in VB2008? How do I declare functions that
link to uxtheme.dll ?