Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Anyone ever played with OpenThemeData() ?
Message
From
23/12/2005 23:20:14
 
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01080536
Message ID:
01080660
Views:
21
>
>however OpenThemeData always returns a handle of 0.
>
>Tried several things with bits I found in the net.
>
>current code is something like this:
>
>#define handle long
>
>declare handle OpenThemeData in uxtheme.dll long hWnd, string pszClasslist
Is that what you are using? "declare handle"?

Try:
DECLARE INTEGER OpenThemeData IN uxtheme.dll;
	INTEGER hWnd,;
	INTEGER pszClassList
From the Help File:

DECLARE [cFunctionType]....

cFunctionType:

SHORT
INTEGER
SINGLE
DOUBLE
LONG
STRING
OBJECT

I dont see "HANDLE" listed. Could that be the problem?

[EDIT]

No, I see you did #define handle long

Carlos
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform