etcpmon: fix autoradio button groups and add missing ETCPROUTE category
This commit is contained in:
1 parent
fceec1aea6
commit
43baeb2306
1 file changed
+7
-5
@@ -744,7 +744,7 @@ static void CreateControls(struct etcpmon_app* app) {
|
||||
"UASYNC","LL_QUEUE","CONNECTION","ETCP","CRYPTO",
|
||||
"MEMORY","TIMING","CONFIG","TUN","ROUTING",
|
||||
"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]);
|
||||
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);
|
||||
for (int l = 0; l < 6; l++) {
|
||||
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", "",
|
||||
WS_CHILD | WS_VISIBLE | BS_AUTORADIOBUTTON,
|
||||
lx, dy, 20, 20, hWnd, (HMENU)(UINT_PTR)(IDC_DEBUG_GLOBAL_BASE + l), hInst, NULL);
|
||||
style, lx, dy, 20, 20, hWnd, (HMENU)(UINT_PTR)(IDC_DEBUG_GLOBAL_BASE + l), hInst, NULL);
|
||||
}
|
||||
|
||||
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);
|
||||
for (int l = 0; l < 6; l++) {
|
||||
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", "",
|
||||
WS_CHILD | WS_VISIBLE | BS_AUTORADIOBUTTON,
|
||||
lx, dy, 20, 16, hWnd, (HMENU)(UINT_PTR)(IDC_DEBUG_ROW_BASE + r * 8 + l), hInst, NULL);
|
||||
style, lx, dy, 20, 16, hWnd, (HMENU)(UINT_PTR)(IDC_DEBUG_ROW_BASE + r * 8 + l), hInst, NULL);
|
||||
}
|
||||
dy += 18;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user