|
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 |