Skip to content

Commit 09840f0

Browse files
committed
Fixed run button not working on first click
- Added SCINTILLAMESSAGE.SCI_xxxxx Enum - Fixed runPluginCommand - Added Notepad allocateSupported, allocateCmdID and allocateMarker methods - Fixed issue with startup (non-raw strings used with paths) - Improved Documentation - Updated Scintilla headers to 2.21 (and regenerated)
1 parent f5768e2 commit 09840f0

29 files changed

Lines changed: 10964 additions & 6453 deletions

NppPlugin/include/Notepad_plus_msgs.h

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,20 @@ enum winVer{WV_UNKNOWN, WV_WIN32S, WV_95, WV_98, WV_ME, WV_NT, WV_W2K, WV_XP, WV
317317
#define NPPM_SAVECURRENTFILEAS (NPPMSG + 78)
318318
// BOOL NPPM_SAVECURRENTFILEAS (BOOL asCopy, const TCHAR* filename)
319319

320-
320+
#define NPPM_ALLOCATESUPPORTED (NPPMSG + 80)
321+
// returns TRUE if NPPM_ALLOCATECMDID is supported
322+
// Use to identify if subclassing is necessary
323+
324+
#define NPPM_ALLOCATECMDID (NPPMSG + 81)
325+
// BOOL NPPM_ALLOCATECMDID(int numberRequested, int* startNumber)
326+
// sets startNumber to the initial command ID if successful
327+
// Returns: TRUE if successful, FALSE otherwise. startNumber will also be set to 0 if unsuccessful
328+
329+
#define NPPM_ALLOCATEMARKER (NPPMSG + 82)
330+
// BOOL NPPM_ALLOCATEMARKER(int numberRequested, int* startNumber)
331+
// sets startNumber to the initial command ID if successful
332+
// Allocates a marker number to a plugin
333+
// Returns: TRUE if successful, FALSE otherwise. startNumber will also be set to 0 if unsuccessful
321334

322335
#define RUNCOMMAND_USER (WM_USER + 3000)
323336
#define NPPM_GETFULLCURRENTPATH (RUNCOMMAND_USER + FULL_CURRENT_PATH)

0 commit comments

Comments
 (0)