mirror of
https://github.com/reactos/reactos.git
synced 2025-05-28 05:28:14 +00:00
[RAPPS] Calculate download listview position (#5232)
Correctly display Download ListView at right position in any languages. CORE-18706
This commit is contained in:
parent
efe7368c46
commit
fc5311aaf2
1 changed files with 6 additions and 1 deletions
|
@ -264,7 +264,12 @@ class CDowloadingAppsListView : public CListView
|
|||
HWND
|
||||
Create(HWND hwndParent)
|
||||
{
|
||||
RECT r = {10, 150, 320, 350};
|
||||
RECT r;
|
||||
::GetClientRect(hwndParent, &r);
|
||||
r.top = (2 * r.top + 1 * r.bottom) / 3; /* The vertical position at ratio 1 : 2 */
|
||||
#define MARGIN 10
|
||||
::InflateRect(&r, -MARGIN, -MARGIN);
|
||||
|
||||
const DWORD style = WS_CHILD | WS_VISIBLE | LVS_REPORT | LVS_SINGLESEL | LVS_SHOWSELALWAYS | LVS_NOSORTHEADER |
|
||||
LVS_NOCOLUMNHEADER;
|
||||
|
||||
|
|
Loading…
Reference in a new issue