Browse Source

GUI: Widen sockets list 1.5x, shrink action field, move Send below

congestion
Evgeny 5 months ago
parent
commit
bd749c1484
  1. 10
      tools/etcpmon/etcpmon_gui.c

10
tools/etcpmon/etcpmon_gui.c

@ -207,24 +207,24 @@ static void CreateControls(struct etcpmon_app* app) {
/* Sockets list */ /* Sockets list */
CreateWindowExA(0, "STATIC", "Sockets:", CreateWindowExA(0, "STATIC", "Sockets:",
WS_CHILD | WS_VISIBLE, WS_CHILD | WS_VISIBLE,
x + 310, y, 100, 20, hWnd, (HMENU)IDC_STATIC, hInst, NULL); x + 320, y, 100, 20, hWnd, (HMENU)IDC_STATIC, hInst, NULL);
app->hListSockets = CreateWindowExA(WS_EX_CLIENTEDGE, "LISTBOX", "", app->hListSockets = CreateWindowExA(WS_EX_CLIENTEDGE, "LISTBOX", "",
WS_CHILD | WS_VISIBLE | LBS_NOTIFY | WS_VSCROLL | LBS_NOINTEGRALHEIGHT, WS_CHILD | WS_VISIBLE | LBS_NOTIFY | WS_VSCROLL | LBS_NOINTEGRALHEIGHT,
x + 310, y + 20, 300, 120, hWnd, (HMENU)IDC_LIST_SOCKETS, hInst, NULL); x + 320, y + 20, 450, 120, hWnd, (HMENU)IDC_LIST_SOCKETS, hInst, NULL);
/* Action input */ /* Action input */
CreateWindowExA(0, "STATIC", "Action:", CreateWindowExA(0, "STATIC", "Action:",
WS_CHILD | WS_VISIBLE, WS_CHILD | WS_VISIBLE,
x + 620, y, 80, 20, hWnd, (HMENU)IDC_STATIC, hInst, NULL); x + 780, y, 80, 20, hWnd, (HMENU)IDC_STATIC, hInst, NULL);
app->hEditAction = CreateWindowExA(WS_EX_CLIENTEDGE, "EDIT", "", app->hEditAction = CreateWindowExA(WS_EX_CLIENTEDGE, "EDIT", "",
WS_CHILD | WS_VISIBLE | ES_AUTOHSCROLL, WS_CHILD | WS_VISIBLE | ES_AUTOHSCROLL,
x + 620, y + 20, 200, 22, hWnd, (HMENU)IDC_EDIT_ACTION, hInst, NULL); x + 780, y + 20, 140, 22, hWnd, (HMENU)IDC_EDIT_ACTION, hInst, NULL);
app->hBtnAction = CreateWindowExA(0, "BUTTON", "Send", app->hBtnAction = CreateWindowExA(0, "BUTTON", "Send",
WS_CHILD | WS_VISIBLE | BS_PUSHBUTTON, WS_CHILD | WS_VISIBLE | BS_PUSHBUTTON,
x + 830, y + 19, 60, 24, hWnd, (HMENU)IDC_BTN_ACTION, hInst, NULL); x + 780, y + 44, 60, 24, hWnd, (HMENU)IDC_BTN_ACTION, hInst, NULL);
/* Graph area */ /* Graph area */
y += 140; y += 140;

Loading…
Cancel
Save