Browse Source

etcpmon: fix autoradio button groups and add missing ETCPROUTE category

etcp-inflight-fix
Evgeny 4 months ago
parent
commit
43baeb2306
  1. 12
      tools/etcpmon/etcpmon_gui.c

12
tools/etcpmon/etcpmon_gui.c

@ -744,7 +744,7 @@ static void CreateControls(struct etcpmon_app* app) {
"UASYNC","LL_QUEUE","CONNECTION","ETCP","CRYPTO", "UASYNC","LL_QUEUE","CONNECTION","ETCP","CRYPTO",
"MEMORY","TIMING","CONFIG","TUN","ROUTING", "MEMORY","TIMING","CONFIG","TUN","ROUTING",
"TIMERS","NORMALIZER","BGP","SOCKET","CONTROL", "TIMERS","NORMALIZER","BGP","SOCKET","CONTROL",
"DUMP","TRAFFIC","DEBUG_CAT","GENERAL","NAT","KEEPALIVE" "DUMP","TRAFFIC","DEBUG_CAT","GENERAL","NAT","KEEPALIVE","ETCPROUTE"
}; };
int ncat = sizeof(cat_names) / sizeof(cat_names[0]); int ncat = sizeof(cat_names) / sizeof(cat_names[0]);
app->debug_cat_count = ncat; app->debug_cat_count = ncat;
@ -753,9 +753,10 @@ static void CreateControls(struct etcpmon_app* app) {
1015, dy + 2, 55, 20, hWnd, (HMENU)IDC_STATIC, hInst, NULL); 1015, dy + 2, 55, 20, hWnd, (HMENU)IDC_STATIC, hInst, NULL);
for (int l = 0; l < 6; l++) { for (int l = 0; l < 6; l++) {
int lx = 1080 + l * 22; int lx = 1080 + l * 22;
DWORD style = WS_CHILD | WS_VISIBLE | BS_AUTORADIOBUTTON;
if (l == 0) style |= WS_GROUP;
app->hDebugGlobalRadio[l] = CreateWindowExA(0, "BUTTON", "", app->hDebugGlobalRadio[l] = CreateWindowExA(0, "BUTTON", "",
WS_CHILD | WS_VISIBLE | BS_AUTORADIOBUTTON, style, lx, dy, 20, 20, hWnd, (HMENU)(UINT_PTR)(IDC_DEBUG_GLOBAL_BASE + l), hInst, NULL);
lx, dy, 20, 20, hWnd, (HMENU)(UINT_PTR)(IDC_DEBUG_GLOBAL_BASE + l), hInst, NULL);
} }
dy += 22; dy += 22;
@ -773,9 +774,10 @@ static void CreateControls(struct etcpmon_app* app) {
1015, dy + 1, 60, 16, hWnd, (HMENU)(UINT_PTR)(IDC_DEBUG_NAME_BASE + r), hInst, NULL); 1015, dy + 1, 60, 16, hWnd, (HMENU)(UINT_PTR)(IDC_DEBUG_NAME_BASE + r), hInst, NULL);
for (int l = 0; l < 6; l++) { for (int l = 0; l < 6; l++) {
int lx = 1080 + l * 22; int lx = 1080 + l * 22;
DWORD style = WS_CHILD | WS_VISIBLE | BS_AUTORADIOBUTTON;
if (l == 0) style |= WS_GROUP;
app->hDebugCatRadio[r][l] = CreateWindowExA(0, "BUTTON", "", app->hDebugCatRadio[r][l] = CreateWindowExA(0, "BUTTON", "",
WS_CHILD | WS_VISIBLE | BS_AUTORADIOBUTTON, style, lx, dy, 20, 16, hWnd, (HMENU)(UINT_PTR)(IDC_DEBUG_ROW_BASE + r * 8 + l), hInst, NULL);
lx, dy, 20, 16, hWnd, (HMENU)(UINT_PTR)(IDC_DEBUG_ROW_BASE + r * 8 + l), hInst, NULL);
} }
dy += 18; dy += 18;
} }

Loading…
Cancel
Save