mirror of
https://github.com/reactos/reactos.git
synced 2024-06-30 18:01:07 +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
|
@ -264,7 +264,12 @@ class CDowloadingAppsListView : public CListView
|
||||||
HWND
|
HWND
|
||||||
Create(HWND hwndParent)
|
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 |
|
const DWORD style = WS_CHILD | WS_VISIBLE | LVS_REPORT | LVS_SINGLESEL | LVS_SHOWSELALWAYS | LVS_NOSORTHEADER |
|
||||||
LVS_NOCOLUMNHEADER;
|
LVS_NOCOLUMNHEADER;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue