|
|
@ -333,32 +333,32 @@ intptr_t CALLBACK PreferenceDlg::run_dlgProc(UINT message, WPARAM wParam, LPARAM |
|
|
|
case TB_LARGE: |
|
|
|
case TB_LARGE: |
|
|
|
{ |
|
|
|
{ |
|
|
|
checkOrUncheckBtn(IDC_RADIO_BIGICON, BST_CHECKED); |
|
|
|
checkOrUncheckBtn(IDC_RADIO_BIGICON, BST_CHECKED); |
|
|
|
::SendMessage(_hParent, WM_COMMAND, IDM_VIEW_TOOLBAR_ENLARGE, 0); |
|
|
|
::SendMessage(::GetParent(_hParent), NPPM_INTERNAL_TOOLBARENLARGE, 0, 0); |
|
|
|
break; |
|
|
|
break; |
|
|
|
} |
|
|
|
} |
|
|
|
case TB_SMALL2: |
|
|
|
case TB_SMALL2: |
|
|
|
{ |
|
|
|
{ |
|
|
|
checkOrUncheckBtn(IDC_RADIO_SMALLICON2, BST_CHECKED); |
|
|
|
checkOrUncheckBtn(IDC_RADIO_SMALLICON2, BST_CHECKED); |
|
|
|
::SendMessage(_hParent, WM_COMMAND, IDM_VIEW_TOOLBAR_REDUCE_SET2, 0); |
|
|
|
::SendMessage(::GetParent(_hParent), NPPM_INTERNAL_TOOLBARREDUCESET2, 0, 0); |
|
|
|
break; |
|
|
|
break; |
|
|
|
} |
|
|
|
} |
|
|
|
case TB_LARGE2: |
|
|
|
case TB_LARGE2: |
|
|
|
{ |
|
|
|
{ |
|
|
|
checkOrUncheckBtn(IDC_RADIO_BIGICON2, BST_CHECKED); |
|
|
|
checkOrUncheckBtn(IDC_RADIO_BIGICON2, BST_CHECKED); |
|
|
|
::SendMessage(_hParent, WM_COMMAND, IDM_VIEW_TOOLBAR_ENLARGE_SET2, 0); |
|
|
|
::SendMessage(::GetParent(_hParent), NPPM_INTERNAL_TOOLBARENLARGESET2, 0, 0); |
|
|
|
break; |
|
|
|
break; |
|
|
|
} |
|
|
|
} |
|
|
|
case TB_STANDARD: |
|
|
|
case TB_STANDARD: |
|
|
|
{ |
|
|
|
{ |
|
|
|
checkOrUncheckBtn(IDC_RADIO_STANDARD, BST_CHECKED); |
|
|
|
checkOrUncheckBtn(IDC_RADIO_STANDARD, BST_CHECKED); |
|
|
|
::SendMessage(_hParent, WM_COMMAND, IDM_VIEW_TOOLBAR_STANDARD, 0); |
|
|
|
::SendMessage(::GetParent(_hParent), NPPM_INTERNAL_TOOLBARSTANDARD, 0, 0); |
|
|
|
break; |
|
|
|
break; |
|
|
|
} |
|
|
|
} |
|
|
|
//case TB_SMALL:
|
|
|
|
//case TB_SMALL:
|
|
|
|
default: |
|
|
|
default: |
|
|
|
{ |
|
|
|
{ |
|
|
|
checkOrUncheckBtn(IDC_RADIO_SMALLICON, BST_CHECKED); |
|
|
|
checkOrUncheckBtn(IDC_RADIO_SMALLICON, BST_CHECKED); |
|
|
|
::SendMessage(_hParent, WM_COMMAND, IDM_VIEW_TOOLBAR_REDUCE, 0); |
|
|
|
::SendMessage(::GetParent(_hParent), NPPM_INTERNAL_TOOLBARREDUCE, 0, 0); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -710,11 +710,11 @@ intptr_t CALLBACK GeneralSubDlg::run_dlgProc(UINT message, WPARAM wParam, LPARAM |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
case IDC_CHECK_TAB_VERTICAL: |
|
|
|
case IDC_CHECK_TAB_VERTICAL: |
|
|
|
::SendMessage(_hParent, WM_COMMAND, IDM_VIEW_DRAWTABBAR_VERTICAL, 0); |
|
|
|
::SendMessage(::GetParent(_hParent), NPPM_INTERNAL_VERTICALTABBAR, 0, 0); |
|
|
|
return TRUE; |
|
|
|
return TRUE; |
|
|
|
|
|
|
|
|
|
|
|
case IDC_CHECK_TAB_MULTILINE : |
|
|
|
case IDC_CHECK_TAB_MULTILINE : |
|
|
|
::SendMessage(_hParent, WM_COMMAND, IDM_VIEW_DRAWTABBAR_MULTILINE, 0); |
|
|
|
::SendMessage(::GetParent(_hParent), NPPM_INTERNAL_MULTILINETABBAR, 0, 0); |
|
|
|
return TRUE; |
|
|
|
return TRUE; |
|
|
|
|
|
|
|
|
|
|
|
case IDC_CHECK_TAB_LAST_EXIT: |
|
|
|
case IDC_CHECK_TAB_LAST_EXIT: |
|
|
@ -739,32 +739,32 @@ intptr_t CALLBACK GeneralSubDlg::run_dlgProc(UINT message, WPARAM wParam, LPARAM |
|
|
|
{ |
|
|
|
{ |
|
|
|
const bool isChecked = isCheckedOrNot(IDC_CHECK_REDUCE); |
|
|
|
const bool isChecked = isCheckedOrNot(IDC_CHECK_REDUCE); |
|
|
|
TabBarPlus::setReduced(isChecked); |
|
|
|
TabBarPlus::setReduced(isChecked); |
|
|
|
::SendMessage(_hParent, WM_COMMAND, IDM_VIEW_REDUCETABBAR, 0); |
|
|
|
::SendMessage(::GetParent(_hParent), NPPM_INTERNAL_REDUCETABBAR, 0, 0); |
|
|
|
return TRUE; |
|
|
|
return TRUE; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
case IDC_CHECK_LOCK : |
|
|
|
case IDC_CHECK_LOCK : |
|
|
|
::SendMessage(_hParent, WM_COMMAND, IDM_VIEW_LOCKTABBAR, 0); |
|
|
|
::SendMessage(::GetParent(_hParent), NPPM_INTERNAL_LOCKTABBAR, 0, 0); |
|
|
|
return TRUE; |
|
|
|
return TRUE; |
|
|
|
|
|
|
|
|
|
|
|
case IDC_CHECK_ORANGE : |
|
|
|
case IDC_CHECK_ORANGE : |
|
|
|
::SendMessage(_hParent, WM_COMMAND, IDM_VIEW_DRAWTABBAR_TOPBAR, 0); |
|
|
|
::SendMessage(::GetParent(_hParent), NPPM_INTERNAL_DRAWTABTOPBAR, 0, 0); |
|
|
|
return TRUE; |
|
|
|
return TRUE; |
|
|
|
|
|
|
|
|
|
|
|
case IDC_CHECK_DRAWINACTIVE : |
|
|
|
case IDC_CHECK_DRAWINACTIVE : |
|
|
|
::SendMessage(_hParent, WM_COMMAND, IDM_VIEW_DRAWTABBAR_INACIVETAB, 0); |
|
|
|
::SendMessage(::GetParent(_hParent), NPPM_INTERNAL_DRAWINACIVETAB, 0, 0); |
|
|
|
return TRUE; |
|
|
|
return TRUE; |
|
|
|
|
|
|
|
|
|
|
|
case IDC_CHECK_ENABLETABCLOSE : |
|
|
|
case IDC_CHECK_ENABLETABCLOSE : |
|
|
|
::SendMessage(_hParent, WM_COMMAND, IDM_VIEW_DRAWTABBAR_CLOSEBOTTUN, 0); |
|
|
|
::SendMessage(::GetParent(_hParent), NPPM_INTERNAL_DRAWTABBARCLOSEBUTTON, 0, 0); |
|
|
|
return TRUE; |
|
|
|
return TRUE; |
|
|
|
|
|
|
|
|
|
|
|
case IDC_CHECK_ENABLETABPIN: |
|
|
|
case IDC_CHECK_ENABLETABPIN: |
|
|
|
::SendMessage(::GetParent(_hParent), NPPM_INTERNAL_DRAWTABBARPINBOTTUN, 0, 0); |
|
|
|
::SendMessage(::GetParent(_hParent), NPPM_INTERNAL_DRAWTABBARPINBUTTON, 0, 0); |
|
|
|
return TRUE; |
|
|
|
return TRUE; |
|
|
|
|
|
|
|
|
|
|
|
case IDC_CHECK_DBCLICK2CLOSE : |
|
|
|
case IDC_CHECK_DBCLICK2CLOSE : |
|
|
|
::SendMessage(_hParent, WM_COMMAND, IDM_VIEW_DRAWTABBAR_DBCLK2CLOSE, 0); |
|
|
|
::SendMessage(::GetParent(_hParent), NPPM_INTERNAL_TABDBCLK2CLOSE, 0, 0); |
|
|
|
return TRUE; |
|
|
|
return TRUE; |
|
|
|
|
|
|
|
|
|
|
|
case IDC_CHECK_HIDE : |
|
|
|
case IDC_CHECK_HIDE : |
|
|
@ -775,27 +775,27 @@ intptr_t CALLBACK GeneralSubDlg::run_dlgProc(UINT message, WPARAM wParam, LPARAM |
|
|
|
return TRUE; |
|
|
|
return TRUE; |
|
|
|
|
|
|
|
|
|
|
|
case IDC_RADIO_SMALLICON : |
|
|
|
case IDC_RADIO_SMALLICON : |
|
|
|
::SendMessage(_hParent, WM_COMMAND, IDM_VIEW_TOOLBAR_REDUCE, 0); |
|
|
|
::SendMessage(::GetParent(_hParent), NPPM_INTERNAL_TOOLBARREDUCE, 0, 0); |
|
|
|
NppDarkMode::setToolBarIconSet(0, NppDarkMode::isEnabled()); |
|
|
|
NppDarkMode::setToolBarIconSet(0, NppDarkMode::isEnabled()); |
|
|
|
return TRUE; |
|
|
|
return TRUE; |
|
|
|
|
|
|
|
|
|
|
|
case IDC_RADIO_BIGICON : |
|
|
|
case IDC_RADIO_BIGICON : |
|
|
|
::SendMessage(_hParent, WM_COMMAND, IDM_VIEW_TOOLBAR_ENLARGE, 0); |
|
|
|
::SendMessage(::GetParent(_hParent), NPPM_INTERNAL_TOOLBARENLARGE, 0, 0); |
|
|
|
NppDarkMode::setToolBarIconSet(1, NppDarkMode::isEnabled()); |
|
|
|
NppDarkMode::setToolBarIconSet(1, NppDarkMode::isEnabled()); |
|
|
|
return TRUE; |
|
|
|
return TRUE; |
|
|
|
|
|
|
|
|
|
|
|
case IDC_RADIO_SMALLICON2: |
|
|
|
case IDC_RADIO_SMALLICON2: |
|
|
|
::SendMessage(_hParent, WM_COMMAND, IDM_VIEW_TOOLBAR_REDUCE_SET2, 0); |
|
|
|
::SendMessage(::GetParent(_hParent), NPPM_INTERNAL_TOOLBARREDUCESET2, 0, 0); |
|
|
|
NppDarkMode::setToolBarIconSet(2, NppDarkMode::isEnabled()); |
|
|
|
NppDarkMode::setToolBarIconSet(2, NppDarkMode::isEnabled()); |
|
|
|
return TRUE; |
|
|
|
return TRUE; |
|
|
|
|
|
|
|
|
|
|
|
case IDC_RADIO_BIGICON2: |
|
|
|
case IDC_RADIO_BIGICON2: |
|
|
|
::SendMessage(_hParent, WM_COMMAND, IDM_VIEW_TOOLBAR_ENLARGE_SET2, 0); |
|
|
|
::SendMessage(::GetParent(_hParent), NPPM_INTERNAL_TOOLBARENLARGESET2, 0, 0); |
|
|
|
NppDarkMode::setToolBarIconSet(3, NppDarkMode::isEnabled()); |
|
|
|
NppDarkMode::setToolBarIconSet(3, NppDarkMode::isEnabled()); |
|
|
|
return TRUE; |
|
|
|
return TRUE; |
|
|
|
|
|
|
|
|
|
|
|
case IDC_RADIO_STANDARD : |
|
|
|
case IDC_RADIO_STANDARD : |
|
|
|
::SendMessage(_hParent, WM_COMMAND, IDM_VIEW_TOOLBAR_STANDARD, 0); |
|
|
|
::SendMessage(::GetParent(_hParent), NPPM_INTERNAL_TOOLBARSTANDARD, 0, 0); |
|
|
|
NppDarkMode::setToolBarIconSet(4, NppDarkMode::isEnabled()); |
|
|
|
NppDarkMode::setToolBarIconSet(4, NppDarkMode::isEnabled()); |
|
|
|
return TRUE; |
|
|
|
return TRUE; |
|
|
|
|
|
|
|
|
|
|
|