Notification for command state changes
My plugin toobar is interested in knowing when an NPP command with a state changes…
View → Word Wrap is turned on or off
File → Save is enabled or disabled
Is there currently a better way to do this?
If not, would it be best implemented as an NPPN beNotified notification?
I had a quick poke through NPP source… the main messageProc call (via _pluginsManager.relayNppMessages) is after the main “process message” Switch in NPPBigSwitch… but only for a few messages with “break”.
I don’t think the TB_CHECKBUTTON messages make it to the Big Switch though since it has the same 0x402 value as NPPM_INTERNAL_CMDLIST_MODIFIED already present there.
I’ll dig further if/when I get the chance!