mirror of
https://github.com/greenshot/greenshot
synced 2025-08-20 05:23:24 -07:00
Making the initial stuff working, getting an installer, when running from VS.
This commit is contained in:
parent
a63bf734d4
commit
57e2044839
1023 changed files with 20896 additions and 19456 deletions
|
@ -1,6 +1,6 @@
|
|||
/*
|
||||
* Greenshot - a free and open source screenshot tool
|
||||
* Copyright (C) 2007-2016 Thomas Braun, Jens Klingen, Robin Krom
|
||||
* Copyright (C) 2007-2020 Thomas Braun, Jens Klingen, Robin Krom
|
||||
*
|
||||
* For more information see: http://getgreenshot.org/
|
||||
* The Greenshot project is hosted on GitHub https://github.com/greenshot/greenshot
|
||||
|
@ -26,19 +26,16 @@ namespace GreenshotPlugin.Controls {
|
|||
public class ExtendedWebBrowser : WebBrowser {
|
||||
protected class ExtendedWebBrowserSite : WebBrowserSite, IOleCommandTarget {
|
||||
private const int OLECMDID_SHOWSCRIPTERROR = 40;
|
||||
private const int OLECMDID_SHOWMESSAGE = 41;
|
||||
|
||||
private static readonly Guid CGID_DocHostCommandHandler = new Guid("F38BC242-B950-11D1-8918-00C04FC2C836");
|
||||
|
||||
private const int S_OK = 0;
|
||||
private const int OLECMDERR_E_NOTSUPPORTED = (-2147221248);
|
||||
private const int OLECMDERR_E_UNKNOWNGROUP = (-2147221244);
|
||||
|
||||
public ExtendedWebBrowserSite(WebBrowser wb) : base(wb) {
|
||||
}
|
||||
|
||||
#region IOleCommandTarget Members
|
||||
public int QueryStatus(Guid pguidCmdGroup, int cCmds, IntPtr prgCmds, IntPtr pCmdText) {
|
||||
public int QueryStatus(Guid pguidCmdGroup, int cCmds, IntPtr prgCmds, IntPtr pCmdText) {
|
||||
return OLECMDERR_E_NOTSUPPORTED;
|
||||
}
|
||||
|
||||
|
@ -52,9 +49,7 @@ namespace GreenshotPlugin.Controls {
|
|||
|
||||
return OLECMDERR_E_NOTSUPPORTED;
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
|
||||
protected override WebBrowserSiteBase CreateWebBrowserSiteBase() {
|
||||
return new ExtendedWebBrowserSite(this);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue