mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-27 19:25:36 +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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user