mirror of
https://github.com/greenshot/greenshot
synced 2025-07-16 10:03:44 -07:00
Merge remote-tracking branch 'remotes/origin/master' into release/1.2.9
This commit is contained in:
commit
0323705513
276 changed files with 5382 additions and 3666 deletions
|
@ -32,11 +32,9 @@ namespace Greenshot.Controls {
|
|||
enum NativeConstants : uint {
|
||||
MA_ACTIVATE = 1,
|
||||
MA_ACTIVATEANDEAT = 2,
|
||||
MA_NOACTIVATE = 3,
|
||||
MA_NOACTIVATEANDEAT = 4,
|
||||
}
|
||||
|
||||
private bool clickThrough = false;
|
||||
private bool _clickThrough;
|
||||
/// <summary>
|
||||
/// Gets or sets whether the ToolStripEx honors item clicks when its containing form does not have input focus.
|
||||
/// </summary>
|
||||
|
@ -46,17 +44,17 @@ namespace Greenshot.Controls {
|
|||
|
||||
public bool ClickThrough {
|
||||
get {
|
||||
return clickThrough;
|
||||
return _clickThrough;
|
||||
}
|
||||
|
||||
set {
|
||||
clickThrough = value;
|
||||
_clickThrough = value;
|
||||
}
|
||||
}
|
||||
|
||||
protected override void WndProc(ref Message m) {
|
||||
base.WndProc(ref m);
|
||||
if (clickThrough && m.Msg == WM_MOUSEACTIVATE && m.Result == (IntPtr)NativeConstants.MA_ACTIVATEANDEAT) {
|
||||
if (_clickThrough && m.Msg == WM_MOUSEACTIVATE && m.Result == (IntPtr)NativeConstants.MA_ACTIVATEANDEAT) {
|
||||
m.Result = (IntPtr)NativeConstants.MA_ACTIVATE;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue