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

Commit cedcd3b

Browse files
committed
made constant
1 parent d0ce01e commit cedcd3b

File tree

1 file changed

+9
-4
lines changed
  • Visual Studio Project Template C#/Integration

1 file changed

+9
-4
lines changed

Visual Studio Project Template C#/Integration/Msgs_h.cs

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,12 @@
99

1010
namespace Kbg.NppPluginNET
1111
{
12-
public enum LangType
12+
class Constants
13+
{
14+
public const int WM_USER = 0x400;
15+
}
16+
17+
public enum LangType
1318
{
1419
L_TEXT, L_PHP, L_C, L_CPP, L_CS, L_OBJC, L_JAVA, L_RC,
1520
L_HTML, L_XML, L_MAKEFILE, L_PASCAL, L_BATCH, L_INI, L_ASCII, L_USER,
@@ -28,7 +33,7 @@ public enum LangType
2833
public enum NppMsg : uint
2934
{
3035
//Here you can find how to use these messages : http://notepad-plus.sourceforge.net/uk/plugins-HOWTO.php
31-
NPPMSG = (0x400/*WM_USER*/ + 1000),
36+
NPPMSG = (Constants.WM_USER + 1000),
3237

3338
NPPM_GETCURRENTSCINTILLA = (NPPMSG + 4),
3439
NPPM_GETCURRENTLANGTYPE = (NPPMSG + 5),
@@ -380,7 +385,7 @@ public enum NppMsg : uint
380385
// VOID NPPM_SAVEFILE(0, const TCHAR *fileNameToSave)
381386
// Save the file specified by fileNameToSave
382387

383-
RUNCOMMAND_USER = (0x400/*WM_USER*/ + 3000),
388+
RUNCOMMAND_USER = (Constants.WM_USER + 3000),
384389
NPPM_GETFULLCURRENTPATH = (RUNCOMMAND_USER + FULL_CURRENT_PATH),
385390
NPPM_GETCURRENTDIRECTORY = (RUNCOMMAND_USER + CURRENT_DIRECTORY),
386391
NPPM_GETFILENAME = (RUNCOMMAND_USER + FILE_NAME),
@@ -411,7 +416,7 @@ public enum NppMsg : uint
411416
CURRENT_LINE = 8,
412417
CURRENT_COLUMN = 9,
413418

414-
// Notification code
419+
// Notification codes
415420
NPPN_FIRST = 1000,
416421
NPPN_READY = (NPPN_FIRST + 1), // To notify plugins that all the procedures of launchment of notepad++ are done.
417422
//scnNotification->nmhdr.code = NPPN_READY;

0 commit comments

Comments
 (0)