1 message in com.googlegroups.google-desktop-developerCustomizing the options menu in a C# ...
FromSent OnAttachments
ronrais03 Feb 2007 00:11 
Subject:Customizing the options menu in a C# gadget
From:ronrais (ronr@gmail.com)
Date:02/03/2007 12:11:12 AM
List:com.googlegroups.google-desktop-developer

Hi All,

I'm developing a C# gadget and I'd like to change the default options menu, i.e. the menu that has the following values: Collapse

Options

About ..

Undock ..

Remove.

I'd like to add another options. I saw that there's a function declared:

// set handler for initializing the plugin menu. Function prototype should be

// AddCustomMenuItems(menu)

[propput, id(DISPID_GDD_PH_ON_ADDCUSTOMMENUITEMS)]

HRESULT onAddCustomMenuItems([in] VARIANT handler);

But it's not clear to me how to use it .. How do I access the menu object (if there is one) and manipulate it?

Any help would be most appreciated.

Thanks!

Regards,

Rais, Ron