[NEW_FEATURE] Add 2 messages for doc monitor plugin.

git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@185 f5eea248-9336-0410-98b8-ebc06183d4e3
This commit is contained in:
donho 2008-04-24 18:16:14 +00:00
parent d074522b7b
commit e89bbe72d4
2 changed files with 15 additions and 0 deletions

View File

@ -211,6 +211,10 @@ enum winVer{WV_UNKNOWN, WV_WIN32S, WV_95, WV_98, WV_ME, WV_NT, WV_W2K, WV_XP, WV
// BOOL NPPM_ADDREBAR(INT ID, 0) // BOOL NPPM_ADDREBAR(INT ID, 0)
//Use ID assigned with NPPM_ADDREBAR //Use ID assigned with NPPM_ADDREBAR
#define NPPM_GETCHECKDOCOPT (NPPMSG + 58)
// INT NPPM_GETCHECKDOCOPT(0, 0)
#define NPPM_SETCHECKDOCOPT (NPPMSG + 59)
// INT NPPM_SETCHECKDOCOPT(OPT, 0)
#define RUNCOMMAND_USER (WM_USER + 3000) #define RUNCOMMAND_USER (WM_USER + 3000)
#define NPPM_GETFULLCURRENTPATH (RUNCOMMAND_USER + FULL_CURRENT_PATH) #define NPPM_GETFULLCURRENTPATH (RUNCOMMAND_USER + FULL_CURRENT_PATH)

View File

@ -7471,6 +7471,17 @@ LRESULT Notepad_plus::runProc(HWND hwnd, UINT Message, WPARAM wParam, LPARAM lPa
break; break;
} }
case NPPM_GETCHECKDOCOPT :
{
return (LRESULT)((NppGUI &)(pNppParam->getNppGUI()))._fileAutoDetection;
}
case NPPM_SETCHECKDOCOPT :
{
((NppGUI &)(pNppParam->getNppGUI()))._fileAutoDetection = (ChangeDetect)wParam;
return TRUE;
}
case NPPM_ENABLECHECKDOCOPT: case NPPM_ENABLECHECKDOCOPT:
{ {
NppGUI & nppgui = (NppGUI &)(pNppParam->getNppGUI()); NppGUI & nppgui = (NppGUI &)(pNppParam->getNppGUI());