Fixed up the Windows Popover so that it can point in any direction and the client area adjusts itself properly.
This commit is contained in:
parent
1fc82c55f4
commit
64274907d3
|
@ -218,7 +218,14 @@ LRESULT CALLBACK popoverproc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
|
||||||
r->top++;
|
r->top++;
|
||||||
r->right--;
|
r->right--;
|
||||||
r->bottom--;
|
r->bottom--;
|
||||||
|
if (p->arrowLeft >= 0)
|
||||||
|
r->left += ARROWWIDTH;
|
||||||
|
if (p->arrowRight >= 0)
|
||||||
|
r->right -= ARROWWIDTH;
|
||||||
|
if (p->arrowTop >= 0)
|
||||||
r->top += ARROWHEIGHT;
|
r->top += ARROWHEIGHT;
|
||||||
|
if (p->arrowBottom >= 0)
|
||||||
|
r->bottom -= ARROWHEIGHT;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
case WM_PAINT:
|
case WM_PAINT:
|
||||||
|
|
Loading…
Reference in New Issue