Skip to content

Commit 4086cd4

Browse files
committed
Fix GDI window startup location and column widths
1 parent 2e11ef6 commit 4086cd4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ProcessHacker/gdihndl.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,6 +328,8 @@ INT_PTR CALLBACK PhpGdiHandlesDlgProc(
328328
PGDI_HANDLES_CONTEXT context = (PGDI_HANDLES_CONTEXT)lParam;
329329
HWND lvHandle;
330330

331+
PhCenterWindow(hwndDlg, GetParent(hwndDlg));
332+
331333
SetProp(hwndDlg, PhMakeContextAtom(), (HANDLE)context);
332334

333335
lvHandle = GetDlgItem(hwndDlg, IDC_LIST);
@@ -336,7 +338,7 @@ INT_PTR CALLBACK PhpGdiHandlesDlgProc(
336338
PhSetControlTheme(lvHandle, L"explorer");
337339
PhAddListViewColumn(lvHandle, 0, 0, 0, LVCFMT_LEFT, 100, L"Type");
338340
PhAddListViewColumn(lvHandle, 1, 1, 1, LVCFMT_LEFT, 80, L"Handle");
339-
PhAddListViewColumn(lvHandle, 2, 2, 2, LVCFMT_LEFT, 80, L"Object");
341+
PhAddListViewColumn(lvHandle, 2, 2, 2, LVCFMT_LEFT, 102, L"Object");
340342
PhAddListViewColumn(lvHandle, 3, 3, 3, LVCFMT_LEFT, 200, L"Information");
341343

342344
PhSetExtendedListView(lvHandle);

0 commit comments

Comments
 (0)