Improve NPPM_GETTABCOLORID API comment

pull/15166/head
Don Ho 6 months ago
parent 9244cd0943
commit 13eede938e

@ -966,25 +966,13 @@ enum Platform { PF_UNKNOWN, PF_X86, PF_X64, PF_IA64, PF_ARM64 };
#define NPPM_GETTABCOLORID (NPPMSG + 114)
// int NPPM_GETTABCOLORID(int view, int tabIndex)
// Get the tab color id with given view and tab index.
// Get the tab color ID with given tab index and view.
// wParam[in]: view - main view (0) or sub-view (1) or -1 (active view)
// lParam[in]: tabIndex - index (in the view indicated above). -1 for currently active tab
// Return tab color ID which contains the following values: 0 (yellow), 1 (green), 2 (blue), 3 (orange), 4 (pink) or -1 (no color)
//
// wParam[in]: VIEW
// Here's the values for the view:
// MAIN_VIEW 0
// SUB_VIEW 1
// active -1
//
// lParam[in]: TABINDEX
// Zero-based, i.e., use 0 for first tab, 1 for second tab, etc.; use -1 for active tab
//
// Return tab color id
// tab color id contains the following values:
// -1 (no color)
// 0 (yellow)
// 1 (green)
// 2 (blue)
// 3 (orange)
// 4 (pink)
// Note: there's no symetric command NPPM_SETTABCOLORID. Plugins can use NPPM_MENUCOMMAND to set current tab color with the desired tab color ID.
// For RUNCOMMAND_USER
#define VAR_NOT_RECOGNIZED 0

Loading…
Cancel
Save