small workaround to get the edge around the systray to display properly.

svn path=/trunk/; revision=7795
This commit is contained in:
Richard Campbell
2004-01-20 23:34:05 +00:00
parent efb3dc1194
commit aa31a3cd3a
@@ -120,16 +120,20 @@ HWND NotifyArea::Create(HWND hwndParent)
{
ClientRect clnt(hwndParent);
return Window::Create(WINDOW_CREATOR(NotifyArea), WS_EX_STATICEDGE,
return Window::Create(WINDOW_CREATOR(NotifyArea), 0,
BtnWindowClass(CLASSNAME_TRAYNOTIFY,CS_DBLCLKS), TITLE_TRAYNOTIFY, WS_CHILD|WS_VISIBLE,
clnt.right-(NOTIFYAREA_WIDTH_DEF+1), 1, NOTIFYAREA_WIDTH_DEF, clnt.bottom-2, hwndParent);
}
LRESULT NotifyArea::WndProc(UINT nmsg, WPARAM wparam, LPARAM lparam)
{
RECT rc;
switch(nmsg) {
case WM_PAINT:
Paint();
GetClientRect(_hwnd, &rc);
DrawEdge(GetDC(_hwnd),&rc,BDR_SUNKENOUTER,BF_RECT);
break;
case WM_TIMER: {
@@ -270,6 +274,7 @@ void NotifyArea::Paint()
x += NOTIFYICON_DIST;
}
}
void NotifyArea::TimerTick()
@@ -346,9 +351,13 @@ HWND ClockWindow::Create(HWND hwndParent)
LRESULT ClockWindow::WndProc(UINT nmsg, WPARAM wparam, LPARAM lparam)
{
RECT rc;
switch(nmsg) {
case WM_PAINT:
Paint();
GetClientRect(_hwnd, &rc);
DrawEdge(GetDC(_hwnd),&rc,BDR_SUNKENOUTER,BF_TOP | BF_RIGHT);
break;
case WM_LBUTTONDBLCLK:
@@ -403,7 +412,6 @@ bool ClockWindow::FormatTime()
void ClockWindow::Paint()
{
PaintCanvas canvas(_hwnd);
BkMode bkmode(canvas, TRANSPARENT);
FontSelection font(canvas, GetStockFont(ANSI_VAR_FONT));