Skip to content
This repository was archived by the owner on Jan 13, 2024. It is now read-only.

Commit 354b21d

Browse files
committed
added NppResource.ClearIndicator()
1 parent ddd6f35 commit 354b21d

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

Visual Studio Project Template C#/PluginInfrastructure/NotepadPPGateway.cs

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,4 +52,18 @@ public void SetCurrentLanguage(LangType language)
5252
Win32.SendMessage(PluginBase.nppData._nppHandle, NppMsg.NPPM_SETCURRENTLANGTYPE, Unused, (int) language);
5353
}
5454
}
55+
56+
/// <summary>
57+
/// This class holds helpers for sending messages defined in the Resource_h.cs file. It is at the moment
58+
/// incomplete. Please help fill in the blanks.
59+
/// </summary>
60+
class NppResource
61+
{
62+
private const int Unused = 0;
63+
64+
public void ClearIndicator()
65+
{
66+
Win32.SendMessage(PluginBase.nppData._nppHandle, (NppMsg) Resource.NPPM_INTERNAL_CLEARINDICATOR, Unused, Unused);
67+
}
68+
}
5569
}

Visual Studio Project Template C#/PluginInfrastructure/Win32.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ public class Win32
5555
public const int MF_BYCOMMAND = 0;
5656
public const int MF_CHECKED = 8;
5757
public const int MF_UNCHECKED = 0;
58+
5859
[DllImport("user32")]
5960
public static extern IntPtr GetMenu(IntPtr hWnd);
6061
[DllImport("user32")]

0 commit comments

Comments
 (0)