mirror of
https://github.com/notepad-plus-plus/notepad-plus-plus.git
synced 2025-07-22 21:34:58 +02:00
[NEW_FEATURE] Add NPPM_INTERNAL_DOCSWITCHOFF and NPPM_INTERNAL_DOCSWITCHIN Messages.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@35 f5eea248-9336-0410-98b8-ebc06183d4e3
This commit is contained in:
parent
49c21209a1
commit
98fc4be762
@ -211,6 +211,4 @@ enum winVer{WV_UNKNOWN, WV_WIN32S, WV_95, WV_98, WV_ME, WV_NT, WV_W2K, WV_XP, WV
|
|||||||
//scnNotification->nmhdr.hwndFrom = hwndNpp;
|
//scnNotification->nmhdr.hwndFrom = hwndNpp;
|
||||||
//scnNotification->nmhdr.idFrom = 0;
|
//scnNotification->nmhdr.idFrom = 0;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#endif //NOTEPAD_PLUS_MSGS_H
|
#endif //NOTEPAD_PLUS_MSGS_H
|
||||||
|
@ -5450,14 +5450,14 @@ LRESULT Notepad_plus::runProc(HWND hwnd, UINT Message, WPARAM wParam, LPARAM lPa
|
|||||||
" +@@@@@@. ",
|
" +@@@@@@. ",
|
||||||
" +@@@@. ",
|
" +@@@@. ",
|
||||||
" +@@. ",
|
" +@@. ",
|
||||||
" . ",
|
" +. ",
|
||||||
|
" ",
|
||||||
" ",
|
" ",
|
||||||
" @@ ",
|
" @@ ",
|
||||||
" @@ ",
|
" @@ ",
|
||||||
" ",
|
" ",
|
||||||
" @@ ",
|
" @@ ",
|
||||||
" @@ ",
|
" @@ "};
|
||||||
" "};
|
|
||||||
|
|
||||||
char * acBottom_xpm[] = {
|
char * acBottom_xpm[] = {
|
||||||
"14 14 4 1", //0
|
"14 14 4 1", //0
|
||||||
@ -5465,14 +5465,14 @@ LRESULT Notepad_plus::runProc(HWND hwnd, UINT Message, WPARAM wParam, LPARAM lPa
|
|||||||
". c #000000", //2
|
". c #000000", //2
|
||||||
"+ c #A400B7", //3
|
"+ c #A400B7", //3
|
||||||
"@ c #DE25F4", //4
|
"@ c #DE25F4", //4
|
||||||
" ",
|
|
||||||
" @@ ",
|
" @@ ",
|
||||||
" @@ ",
|
" @@ ",
|
||||||
" ",
|
" ",
|
||||||
" @@ ",
|
" @@ ",
|
||||||
" @@ ",
|
" @@ ",
|
||||||
" ",
|
" ",
|
||||||
" . ",
|
" ",
|
||||||
|
" +. ",
|
||||||
" +@@. ",
|
" +@@. ",
|
||||||
" +@@@@. ",
|
" +@@@@. ",
|
||||||
" +@@@@@@. ",
|
" +@@@@@@. ",
|
||||||
@ -6599,6 +6599,16 @@ LRESULT Notepad_plus::runProc(HWND hwnd, UINT Message, WPARAM wParam, LPARAM lPa
|
|||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
case NPPM_INTERNAL_DOCSWITCHOFF :
|
||||||
|
{
|
||||||
|
return TRUE;
|
||||||
|
}
|
||||||
|
|
||||||
|
case NPPM_INTERNAL_DOCSWITCHIN :
|
||||||
|
{
|
||||||
|
return TRUE;
|
||||||
|
}
|
||||||
|
|
||||||
// ADD: success->hwnd; failure->NULL
|
// ADD: success->hwnd; failure->NULL
|
||||||
// REMOVE: success->NULL; failure->hwnd
|
// REMOVE: success->NULL; failure->hwnd
|
||||||
case NPPM_MODELESSDIALOG :
|
case NPPM_MODELESSDIALOG :
|
||||||
|
@ -845,6 +845,8 @@ void ScintillaEditView::restoreCurrentPos(const Position & prevPos)
|
|||||||
//! \brief return the index of previeus current doc
|
//! \brief return the index of previeus current doc
|
||||||
char * ScintillaEditView::activateDocAt(int index)
|
char * ScintillaEditView::activateDocAt(int index)
|
||||||
{
|
{
|
||||||
|
::SendMessage(_hParent, NPPM_INTERNAL_DOCSWITCHOFF, 0, (LPARAM)_hSelf);
|
||||||
|
|
||||||
// before activating another document, we get the current position
|
// before activating another document, we get the current position
|
||||||
// from the Scintilla view then save it to the current document
|
// from the Scintilla view then save it to the current document
|
||||||
saveCurrentPos();
|
saveCurrentPos();
|
||||||
@ -904,6 +906,7 @@ char * ScintillaEditView::activateDocAt(int index)
|
|||||||
restoreCurrentPos(prevDocPos);
|
restoreCurrentPos(prevDocPos);
|
||||||
|
|
||||||
execute(SCI_SETEOLMODE, _buffers[_currentIndex]._format);
|
execute(SCI_SETEOLMODE, _buffers[_currentIndex]._format);
|
||||||
|
::SendMessage(_hParent, NPPM_INTERNAL_DOCSWITCHIN, 0, (LPARAM)_hSelf);
|
||||||
|
|
||||||
return _buffers[_currentIndex]._fullPathName;
|
return _buffers[_currentIndex]._fullPathName;
|
||||||
}
|
}
|
||||||
|
@ -278,6 +278,8 @@
|
|||||||
#define NPPM_INTERNAL_SCINTILLAKEYMODIFIED (NOTEPADPLUS_USER_INTERNAL + 7)
|
#define NPPM_INTERNAL_SCINTILLAKEYMODIFIED (NOTEPADPLUS_USER_INTERNAL + 7)
|
||||||
#define NPPM_INTERNAL_SCINTILLAFINFERCOLLAPSE (NOTEPADPLUS_USER_INTERNAL + 8)
|
#define NPPM_INTERNAL_SCINTILLAFINFERCOLLAPSE (NOTEPADPLUS_USER_INTERNAL + 8)
|
||||||
#define NPPM_INTERNAL_SCINTILLAFINFERUNCOLLAPSE (NOTEPADPLUS_USER_INTERNAL + 9)
|
#define NPPM_INTERNAL_SCINTILLAFINFERUNCOLLAPSE (NOTEPADPLUS_USER_INTERNAL + 9)
|
||||||
|
#define NPPM_INTERNAL_DOCSWITCHOFF (NOTEPADPLUS_USER_INTERNAL + 10)
|
||||||
|
#define NPPM_INTERNAL_DOCSWITCHIN (NOTEPADPLUS_USER_INTERNAL + 11)
|
||||||
// See Notepad_plus_msgs.h
|
// See Notepad_plus_msgs.h
|
||||||
//#define NOTEPADPLUS_USER (WM_USER + 1000)
|
//#define NOTEPADPLUS_USER (WM_USER + 1000)
|
||||||
#define SCINTILLA_USER (WM_USER + 2000)
|
#define SCINTILLA_USER (WM_USER + 2000)
|
||||||
|
@ -572,18 +572,10 @@
|
|||||||
RelativePath="..\src\MISC\RegExt\regExtDlgRc.h"
|
RelativePath="..\src\MISC\RegExt\regExtDlgRc.h"
|
||||||
>
|
>
|
||||||
</File>
|
</File>
|
||||||
<File
|
|
||||||
RelativePath="..\src\ScitillaComponent\resource.h"
|
|
||||||
>
|
|
||||||
</File>
|
|
||||||
<File
|
<File
|
||||||
RelativePath="..\src\resource.h"
|
RelativePath="..\src\resource.h"
|
||||||
>
|
>
|
||||||
</File>
|
</File>
|
||||||
<File
|
|
||||||
RelativePath="..\src\WinControls\Preference\resource.h"
|
|
||||||
>
|
|
||||||
</File>
|
|
||||||
<File
|
<File
|
||||||
RelativePath="..\src\WinControls\StaticDialog\RunDlg\RunDlg.h"
|
RelativePath="..\src\WinControls\StaticDialog\RunDlg\RunDlg.h"
|
||||||
>
|
>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user