[ADD] Add 2 xpm icons for hide lines feature.

git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@31 f5eea248-9336-0410-98b8-ebc06183d4e3
This commit is contained in:
donho 2007-09-13 09:28:43 +00:00
parent 30a7f93cb9
commit e5d3d370b8
1 changed files with 40 additions and 18 deletions

View File

@ -5435,27 +5435,47 @@ LRESULT Notepad_plus::runProc(HWND hwnd, UINT Message, WPARAM wParam, LPARAM lPa
} }
case WM_CREATE: case WM_CREATE:
{ {
char * ac_xpm[] = { char * acTop_xpm[] = {
"14 14 4 1", //0 "14 14 4 1", //0
" c #FFFFFF", //1 " c #FFFFFF", //1
". c #000000", //2 ". c #000000", //2
"+ c #A400B7", //3 "+ c #A400B7", //3
"@ c #DE25F4", //4 "@ c #DE25F4", //4
" .. ", "++++++++++++++",
" .+. ", " +@@@@@@@@@@. ",
" .@+. ", " +@@@@@@@@. ",
" .@@+. ", " +@@@@@@. ",
".......@@@+. ", " +@@@@. ",
".+@@@@@@@@@+. ", " +@@. ",
".+@@@@@@@@@@+.", " . ",
".+@@@@@@@@@@+.", " ",
".++++++@@@@+. ", " @@ ",
".......@@@+. ", " @@ ",
" .@@+. ", " ",
" .@+. ", " @@ ",
" .+. ", " @@ ",
" .. "}; " "};
char * acBottom_xpm[] = {
"14 14 4 1", //0
" c #FFFFFF", //1
". c #000000", //2
"+ c #A400B7", //3
"@ c #DE25F4", //4
" ",
" @@ ",
" @@ ",
" ",
" @@ ",
" @@ ",
" ",
" . ",
" +@@. ",
" +@@@@. ",
" +@@@@@@. ",
" +@@@@@@@@. ",
" +@@@@@@@@@@. ",
".............."};
pNppParam->setFontList(hwnd); pNppParam->setFontList(hwnd);
NppGUI & nppGUI = (NppGUI &)pNppParam->getNppGUI(); NppGUI & nppGUI = (NppGUI &)pNppParam->getNppGUI();
@ -5486,8 +5506,10 @@ LRESULT Notepad_plus::runProc(HWND hwnd, UINT Message, WPARAM wParam, LPARAM lPa
_mainEditView.display(); _mainEditView.display();
_mainEditView.execute(SCI_MARKERDEFINEPIXMAP, MARK_HIDELINESEND, (LPARAM)ac_xpm); _mainEditView.execute(SCI_MARKERDEFINEPIXMAP, MARK_HIDELINESBEGIN, (LPARAM)acTop_xpm);
_subEditView.execute(SCI_MARKERDEFINEPIXMAP, MARK_HIDELINESEND, (LPARAM)ac_xpm); _mainEditView.execute(SCI_MARKERDEFINEPIXMAP, MARK_HIDELINESEND, (LPARAM)acBottom_xpm);
_subEditView.execute(SCI_MARKERDEFINEPIXMAP, MARK_HIDELINESBEGIN, (LPARAM)acTop_xpm);
_subEditView.execute(SCI_MARKERDEFINEPIXMAP, MARK_HIDELINESEND, (LPARAM)acBottom_xpm);
_invisibleEditView.init(_hInst, hwnd); _invisibleEditView.init(_hInst, hwnd);
_invisibleEditView.execute(SCI_SETUNDOCOLLECTION); _invisibleEditView.execute(SCI_SETUNDOCOLLECTION);