forked from notepad-plus-plus/notepad-plus-plus
-
Notifications
You must be signed in to change notification settings - Fork 73
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add new plugin command & notification while native lang being changed
Add new plugin notification NPPN_NATIVELANGCHANGED when the native language has been changed, and add new plugin message NPPM_GETNATIVELANGFILENAME for plugins calling after getting NPPN_NATIVELANGCHANGED notification. Usage of the command: #define NPPM_GETNATIVELANGFILENAME (NPPMSG + 116) // int NPPM_GETNATIVELANGFILENAME(size_t strLen, char* nativeLangFileName) // Get the Current native language file name string. // Users should call it with nativeLangFileName as NULL to get the required number of char (not including the terminating nul character), // allocate commandLineStr buffer with the return value + 1, then call it again to get the current native language file name string. // wParam[in]: strLen is "commandLineStr" buffer length // lParam[out]: commandLineStr recieves all copied native language file name string // Return the number of char copied/to copy Usage of the notification: #define NPPN_NATIVELANGCHANGED (NPPN_FIRST + 31) // To notify plugins that the current native language is just changed to another one. // Use NPPM_GETNATIVELANGFILENAME to get current native language file name. // Use NPPM_GETMENUHANDLE(NPPPLUGINMENU, 0) to get submenu "Plugins" handle (HMENU) //scnNotification->nmhdr.code = NPPN_NATIVELANGCHANGED; //scnNotification->nmhdr.hwndFrom = hwndNpp //scnNotification->nmhdr.idFrom = 0; // preserved for the future use, must be zero Fix notepad-plus-plus#15513, close notepad-plus-plus#15582
- Loading branch information
Showing
3 changed files
with
46 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters