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:
Pietro Gagliardi 2014-10-10 12:37:42 -04:00
parent 1fc82c55f4
commit 64274907d3
1 changed files with 8 additions and 1 deletions

View File

@ -218,7 +218,14 @@ LRESULT CALLBACK popoverproc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
r->top++;
r->right--;
r->bottom--;
r->top += ARROWHEIGHT;
if (p->arrowLeft >= 0)
r->left += ARROWWIDTH;
if (p->arrowRight >= 0)
r->right -= ARROWWIDTH;
if (p->arrowTop >= 0)
r->top += ARROWHEIGHT;
if (p->arrowBottom >= 0)
r->bottom -= ARROWHEIGHT;
return 0;
}
case WM_PAINT: