mirror of
https://github.com/reactos/reactos.git
synced 2024-08-05 11:00:55 +00:00
calculate taskbar size
svn path=/trunk/; revision=5854
This commit is contained in:
parent
15ccb1b4be
commit
cd92a2363b
|
@ -159,7 +159,7 @@ LRESULT DesktopBar::WndProc(UINT nmsg, WPARAM wparam, LPARAM lparam)
|
||||||
int cy = HIWORD(lparam);
|
int cy = HIWORD(lparam);
|
||||||
|
|
||||||
if (_hwndTaskBar)
|
if (_hwndTaskBar)
|
||||||
MoveWindow(_hwndTaskBar, TASKBAR_LEFT+QUICKLAUNCH_WIDTH, 0, cx-(TASKBAR_LEFT+QUICKLAUNCH_WIDTH)-(NOTIFYAREA_WIDTH+1), cy, TRUE);
|
MoveWindow(_hwndTaskBar, TASKBAR_LEFT+QUICKLAUNCH_WIDTH, 0, cx-TASKBAR_LEFT-QUICKLAUNCH_WIDTH-(NOTIFYAREA_WIDTH+1), cy, TRUE);
|
||||||
|
|
||||||
if (_hwndNotify)
|
if (_hwndNotify)
|
||||||
MoveWindow(_hwndNotify, cx-(NOTIFYAREA_WIDTH+1), 1, NOTIFYAREA_WIDTH, cy-2, TRUE);
|
MoveWindow(_hwndNotify, cx-(NOTIFYAREA_WIDTH+1), 1, NOTIFYAREA_WIDTH, cy-2, TRUE);
|
||||||
|
|
|
@ -31,6 +31,7 @@
|
||||||
#include "../explorer.h"
|
#include "../explorer.h"
|
||||||
|
|
||||||
#include "taskbar.h"
|
#include "taskbar.h"
|
||||||
|
#include "traynotify.h" // for NOTIFYAREA_WIDTH
|
||||||
|
|
||||||
|
|
||||||
TaskBarEntry::TaskBarEntry()
|
TaskBarEntry::TaskBarEntry()
|
||||||
|
@ -71,7 +72,7 @@ HWND TaskBar::Create(HWND hwndParent)
|
||||||
|
|
||||||
return Window::Create(WINDOW_CREATOR(TaskBar), 0,
|
return Window::Create(WINDOW_CREATOR(TaskBar), 0,
|
||||||
BtnWindowClass(CLASSNAME_TASKBAR), TITLE_TASKBAR, WS_CHILD|WS_VISIBLE,
|
BtnWindowClass(CLASSNAME_TASKBAR), TITLE_TASKBAR, WS_CHILD|WS_VISIBLE,
|
||||||
TASKBAR_LEFT, 0, clnt.right-TASKBAR_LEFT/*-(NOTIFYAREA_WIDTH+1)*/, clnt.bottom, hwndParent);
|
TASKBAR_LEFT, 0, clnt.right-TASKBAR_LEFT-(NOTIFYAREA_WIDTH+1), clnt.bottom, hwndParent);
|
||||||
}
|
}
|
||||||
|
|
||||||
LRESULT TaskBar::Init(LPCREATESTRUCT pcs)
|
LRESULT TaskBar::Init(LPCREATESTRUCT pcs)
|
||||||
|
|
Loading…
Reference in a new issue