THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 17/02/2003 at 13:31, xxxxxxxx wrote:
HI
I don't know how to express this... I am kinda disapointed.
No answers. Ok, I gave no example, but I'll do that now.
If I could perform SendMessage as documentated I could (maybe) switch the tab manually. I catched the message the occurs when I am changing the tabs and it seems to be pretty simple... IF I COULD SEND A MESSAGE.
So - why does this not work???
//demo for non working function: SendMessage
// be sure to use a unique ID obtained from [www.plugincafe.com](http://www.plugincafe.com)
var PLUGIN_ID = 1000161;
// be sure to use a unique ID obtained from [www.plugincafe.com](http://www.plugincafe.com)
include "c4d_symbols.h"
// ******** make a dialog class **************
var resource;
class MyDialog : GeBaseDialog
{
public:
MyDialog();
CreateLayout();
}
MyDialog::MyDialog()
{
SendMessage(0,NULL);
super(0);
}
MyDialog::CreateLayout()
{
// return LoadDialogResource(R_HELLOWORLD,resource,0);
return TRUE;
}
// ****** register plugin in menu **************
class MyMenuPlugin : MenuPlugin
{
public:
MyMenuPlugin();
GetID();
GetName();
GetHelp();
Execute(doc);
}
MyMenuPlugin::MyMenuPlugin() { super(); }
MyMenuPlugin::GetID() { return PLUGIN_ID; }
MyMenuPlugin::GetName() { return "SendMessage"; }
MyMenuPlugin::GetHelp() { return "Shows nonworking SendMessageFunction"; }
MyMenuPlugin::Execute(doc)
{
var d = new(MyDialog);
d->Open(FALSE,-1,-1);
}
main()
{
Register(MyMenuPlugin);
}
Compiling this does not work - it complains about "SendMessage". It doesn't know this function. It is important to me that I find a way to switch between layouts. Anyhow - why does this not work??? Is there a workaround?