Handling of COLORREF
Posted: Fri Aug 07, 2009 2:30 pm
by Jens Richnow >> Thu, 1 Feb 2001 23:32:08 GMT
Can somebody please help with the COLORREF array which is used in some API function calls as an io parameter. For instance, using the SetSysColors funtion, requires to pass the pointer to the correct COLORREF values. In programming languages, like VB etc., this poses no problem, as RGB() is defined and can be used as the parameter to pass.
Passing a pointer is a different problem than passing types or structures which often can be passed in Jade using binaries (although it is really cumbersome if you deal with fairly large types).
Is there a way to pass the COLORREF to API functions from within Jade? I checked the Jade help manuals etc. over and over again but could not find anything. Since structures and types are not supported as such by Jade I presume it applies to this problem as well.
I'm still hopefull, that somebody knows how to do it.
Thanks very much in advance!
Jens
Can somebody please help with the COLORREF array which is used in some API function calls as an io parameter. For instance, using the SetSysColors funtion, requires to pass the pointer to the correct COLORREF values. In programming languages, like VB etc., this poses no problem, as RGB() is defined and can be used as the parameter to pass.
Passing a pointer is a different problem than passing types or structures which often can be passed in Jade using binaries (although it is really cumbersome if you deal with fairly large types).
Is there a way to pass the COLORREF to API functions from within Jade? I checked the Jade help manuals etc. over and over again but could not find anything. Since structures and types are not supported as such by Jade I presume it applies to this problem as well.
I'm still hopefull, that somebody knows how to do it.
Thanks very much in advance!
Jens