Skip to content

Commit 2002f22

Browse files
committed
NetworkTools: Fix whois text padding
1 parent 56f81a3 commit 2002f22

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

plugins/NetworkTools/NetworkTools.rc

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ EXSTYLE WS_EX_APPWINDOW
5454
CAPTION "Network Tools"
5555
FONT 8, "MS Shell Dlg", 400, 0, 0x1
5656
BEGIN
57-
CONTROL "",IDC_NETOUTPUTEDIT,"RICHEDIT50W",WS_VSCROLL | WS_TABSTOP | 0x4,2,2,387,212
57+
CONTROL "",IDC_NETOUTPUTEDIT,"RICHEDIT50W",WS_VSCROLL | WS_TABSTOP | 0x4,0,0,389,214
5858
END
5959

6060
IDD_OPTIONS DIALOGEX 0, 0, 253, 129
@@ -615,8 +615,6 @@ GUIDELINES DESIGNINFO
615615
BEGIN
616616
IDD_WHOIS, DIALOG
617617
BEGIN
618-
LEFTMARGIN, 2
619-
TOPMARGIN, 2
620618
END
621619

622620
IDD_OPTIONS, DIALOG

plugins/NetworkTools/whois.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -683,6 +683,7 @@ INT_PTR CALLBACK WhoisDlgProc(
683683
SendMessage(context->RichEditHandle, EM_AUTOURLDETECT, AURL_ENABLEURL, 0);
684684
SendMessage(context->RichEditHandle, EM_SETWORDWRAPMODE, WBF_WORDWRAP, 0);
685685
//context->FontHandle = PhCreateCommonFont(-11, FW_MEDIUM, context->RichEditHandle);
686+
SendMessage(context->RichEditHandle, EM_SETMARGINS, EC_LEFTMARGIN, MAKELONG(4, 0));
686687

687688
PhInitializeLayoutManager(&context->LayoutManager, hwndDlg);
688689
PhAddLayoutItem(&context->LayoutManager, context->RichEditHandle, NULL, PH_ANCHOR_ALL);

0 commit comments

Comments
 (0)