return hr;
pDeskBandClient->SetDeskBarSite(NULL);
-
+
pDeskBandClient = NULL;
m_Client = NULL;
}
static void AdjustForExcludeArea(BOOL alignLeft, BOOL alignTop, BOOL preferVertical, PINT px, PINT py, INT cx, INT cy, RECTL rcExclude) {
RECT rcWindow = { *px, *py, *px + cx, *py + cy };
-
+
if (rcWindow.right > rcExclude.left && rcWindow.left < rcExclude.right &&
rcWindow.bottom > rcExclude.top && rcWindow.top < rcExclude.bottom)
{
AdjustForExcludeArea(alignLeft, alignTop, preferVertical, &x, &y, cx, cy, *prcExclude);
// Verify that it doesn't escape the work area, and flip.
- if (alignLeft)
+ if (alignLeft)
{
if (x < rcWorkArea.left && (ppt->x+cx) <= rcWorkArea.right)
{
LRESULT CMenuDeskBar::_OnNcPaint(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
{
- /* If it is a flat style menu we need to handle WM_NCPAINT
+ /* If it is a flat style menu we need to handle WM_NCPAINT
* and paint the border with the right colour */
if ((GetStyle() & WS_BORDER) == 0)
{