Re: Modifying the context menu



Seems like this will work, except for two issues I can foresee:

1) How do I know what menu is about to be displayed? For example, if I
right click a submit button, all I get is Undo, Cut, Copy, Paste,
Delete, Select All, whereas if I right click a regular web page, I get
many more options including Encoding, View Source, etc. Moreover,
sometimes the options are greyed out and sometimes they are not.
Although I haven't implemented this method yet, I'm pretty sure the
menu I display may not be identical to the one internet explorer is
displayed, simply due to the greying out / enabling of various menu
items.

2) Where do these #defines come from? In the sample code on that link,
it has

#define IDR_BROWSE_CONTEXT_MENU 24641
#define IDR_FORM_CONTEXT_MENU 24640
#define SHDVID_GETMIMECSETMENU 27
#define SHDVID_ADDMENUEXTENSIONS 53

I grepped my entire Visual Studio include directory, but did not find
any of these anywhere.

Thanks again

.