Add new API to disable auto-updater
New API : NPPM_DISABLEAUTOUPDATE
This commit is contained in:
parent
2ff03fe250
commit
6c4f9a64d2
@ -416,6 +416,9 @@ enum winVer{ WV_UNKNOWN, WV_WIN32S, WV_95, WV_98, WV_ME, WV_NT, WV_W2K, WV_XP, W
|
||||
#define NPPM_SAVEFILE (NPPMSG + 94)
|
||||
// VOID NPPM_SAVEFILE(0, const TCHAR *fileNameToSave)
|
||||
|
||||
#define NPPM_DISABLEAUTOUPDATE (NPPMSG + 95)
|
||||
// VOID NPPM_DISABLEAUTOUPDATE(0, 0)
|
||||
|
||||
#define RUNCOMMAND_USER (WM_USER + 3000)
|
||||
#define NPPM_GETFULLCURRENTPATH (RUNCOMMAND_USER + FULL_CURRENT_PATH)
|
||||
#define NPPM_GETCURRENTDIRECTORY (RUNCOMMAND_USER + CURRENT_DIRECTORY)
|
||||
|
@ -464,6 +464,13 @@ LRESULT Notepad_plus::process(HWND hwnd, UINT Message, WPARAM wParam, LPARAM lPa
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
case NPPM_DISABLEAUTOUPDATE:
|
||||
{
|
||||
NppGUI & nppGUI = (NppGUI &)pNppParam->getNppGUI();
|
||||
nppGUI._autoUpdateOpt._doAutoUpdate = false;
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
case WM_SIZE:
|
||||
{
|
||||
RECT rc;
|
||||
|
Loading…
Reference in New Issue
Block a user