mirror of
https://github.com/reactos/reactos.git
synced 2025-02-22 16:36:33 +00:00
[NETSHELL]
- Fix column width of listview svn path=/trunk/; revision=59116
This commit is contained in:
parent
c6a7c2e40c
commit
7b94eec49d
1 changed files with 10 additions and 2 deletions
|
@ -421,6 +421,7 @@ LANStatusUiDetailsDlg(
|
||||||
PIP_PER_ADAPTER_INFO pPerAdapter;
|
PIP_PER_ADAPTER_INFO pPerAdapter;
|
||||||
DWORD dwSize;
|
DWORD dwSize;
|
||||||
HWND hDlgCtrl;
|
HWND hDlgCtrl;
|
||||||
|
RECT rect;
|
||||||
|
|
||||||
switch(uMsg)
|
switch(uMsg)
|
||||||
{
|
{
|
||||||
|
@ -428,8 +429,15 @@ LANStatusUiDetailsDlg(
|
||||||
pContext = (LANSTATUSUI_CONTEXT*)lParam;
|
pContext = (LANSTATUSUI_CONTEXT*)lParam;
|
||||||
|
|
||||||
hDlgCtrl = GetDlgItem(hwndDlg, IDC_DETAILS);
|
hDlgCtrl = GetDlgItem(hwndDlg, IDC_DETAILS);
|
||||||
InsertColumnToListView(hDlgCtrl, IDS_PROPERTY, 0, 80);
|
|
||||||
InsertColumnToListView(hDlgCtrl, IDS_VALUE, 1, 80);
|
/* get client rect */
|
||||||
|
GetClientRect(hDlgCtrl, &rect);
|
||||||
|
|
||||||
|
/* calculate column width */
|
||||||
|
dwSize = rect.right / 2;
|
||||||
|
|
||||||
|
InsertColumnToListView(hDlgCtrl, IDS_PROPERTY, 0, dwSize);
|
||||||
|
InsertColumnToListView(hDlgCtrl, IDS_VALUE, 1, dwSize);
|
||||||
|
|
||||||
dwSize = 0;
|
dwSize = 0;
|
||||||
pCurAdapter = NULL;
|
pCurAdapter = NULL;
|
||||||
|
|
Loading…
Reference in a new issue