Posted: Thu Jul 11, 2002 12:52 pm
Restored from previous forum. Originally posted by wickedRush.
Hello, I would like to be able to draw an XP style button, etc. on a window ( similar to calling DrawFrameControl API function ) I have not been able to get the OpenTheme function to return a hTheme handle, only NULL
assuming OpenTheme returns a handle the program does not exit. But it always returns NULL. I've tried all kinds of variations on this code with no luck. Please Help...
Hello, I would like to be able to draw an XP style button, etc. on a window ( similar to calling DrawFrameControl API function ) I have not been able to get the OpenTheme function to return a hTheme handle, only NULL
Code: Select all
hWnd=OpenWindow(1,100,100,400,300,#WS_SYSMENU,"UxTheme.dll Test")
OpenLibrary(1,"uxtheme.dll")
If CallFunction(1,"OpenThemeData",hWnd,@"Button")=0
End
EndIf
Repeat
event=WaitWindowEvent()
Select event
Case #PB_EventCloseWindow
Select EventWindowID()
Case 1
quit=1
EndSelect
EndSelect
Until quit=1