Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 77611
Collapse All | Expand All

(-)Eclipse SWT Browser/win32/org/eclipse/swt/browser/WebSite.java (+18 lines)
Lines 22-27 Link Here
22
	COMObject iServiceProvider;
22
	COMObject iServiceProvider;
23
	COMObject iInternetSecurityManager;
23
	COMObject iInternetSecurityManager;
24
	COMObject iOleCommandTarget;
24
	COMObject iOleCommandTarget;
25
	
26
	public static final int OLECMDID_SHOWSCRIPTERROR = 40;
27
	public static final int OLE_E_LAST = 0x800400FF;
28
	public static final int OLECMDERR_E_UNKNOWNGROUP = OLE_E_LAST+3;
25
29
26
public WebSite(Composite parent, int style, String progId) {
30
public WebSite(Composite parent, int style, String progId) {
27
	super(parent, style, progId);		
31
	super(parent, style, progId);		
Lines 439-444 Link Here
439
}
443
}
440
444
441
int Exec(int pguidCmdGroup, int nCmdID, int nCmdExecOpt, int pvaIn, int pvaOut) {
445
int Exec(int pguidCmdGroup, int nCmdID, int nCmdExecOpt, int pvaIn, int pvaOut) {
446
	
447
	if (pguidCmdGroup != 0)
448
	{	
449
		GUID guid = new GUID();
450
		COM.MoveMemory(guid, pguidCmdGroup, GUID.sizeof);
451
		if (COM.IsEqualGUID(guid, COM.CGID_DocHostCommandHandler))
452
		{
453
			if (nCmdID == OLECMDID_SHOWSCRIPTERROR) 
454
				return COM.S_OK;
455
			else
456
				return OLECMDERR_E_UNKNOWNGROUP;
457
		}
458
	}
459
	
442
	/*
460
	/*
443
	* Bug in Internet Explorer.  OnToolBar TRUE is also fired when any of the 
461
	* Bug in Internet Explorer.  OnToolBar TRUE is also fired when any of the 
444
	* address bar or menu bar are requested but not the tool bar.  A workaround
462
	* address bar or menu bar are requested but not the tool bar.  A workaround
(-)Eclipse SWT PI/win32/org/eclipse/swt/internal/ole/win32/COM.java (+3 lines)
Lines 123-128 Link Here
123
	//public static final GUID IIDIViewObject = IIDFromString("{0000010D-0000-0000-C000-000000000046}"); //$NON-NLS-1$
123
	//public static final GUID IIDIViewObject = IIDFromString("{0000010D-0000-0000-C000-000000000046}"); //$NON-NLS-1$
124
	public static final GUID IIDIViewObject2 = IIDFromString("{00000127-0000-0000-C000-000000000046}"); //$NON-NLS-1$
124
	public static final GUID IIDIViewObject2 = IIDFromString("{00000127-0000-0000-C000-000000000046}"); //$NON-NLS-1$
125
	public static final GUID CGID_Explorer = IIDFromString("{000214D0-0000-0000-C000-000000000046}"); //$NON-NLS-1$
125
	public static final GUID CGID_Explorer = IIDFromString("{000214D0-0000-0000-C000-000000000046}"); //$NON-NLS-1$
126
	
127
	public static final GUID CGID_DocHostCommandHandler = COM.IIDFromString("{f38bc242-b950-11d1-8918-00c04fc2c836}");
128
126
129
127
130
128
	/** Constants */
131
	/** Constants */

Return to bug 77611