THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 21/10/2011 at 09:07, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 12
Platform: Windows ;
Language(s) : C++ ;
---------
Is it possible to register an icon through a dialog plugin?
I've seen this code example floating around:
GetCustomIconData *icon =((GetCustomIconData* )data);
GetIcon(200000000,icon->dat);
icon->filled=TRUE;
But that is for object and tag type of plugins.
Dialog type plugins don't have a *data parameter to overload. And when I do something like this:
void *data;
GetCustomIconData *icon =((GetCustomIconData* )data); //Crashes!!
GetIcon(200000000,icon->dat);
icon->filled=TRUE;
C4D crashes
Anyone know what I'm doing wrong?
Is this even possible?
-ScottA