mirror of
https://github.com/reactos/reactos.git
synced 2025-06-19 03:35:24 +00:00
[RSHELL]
* A couple small fixes before I go to bed. * Add to CD, so explorer_new can be run in ros, with the custom classes. CORE-7886 svn path=/branches/shell-experiments/; revision=62156
This commit is contained in:
parent
c486aa0a00
commit
c57c04a7c2
3 changed files with 12 additions and 3 deletions
|
@ -24,7 +24,7 @@
|
|||
|
||||
WINE_DEFAULT_DEBUG_CHANNEL(CMenuDeskBar);
|
||||
|
||||
#define WRAP_LOG 1
|
||||
#define WRAP_LOG 0
|
||||
|
||||
typedef CWinTraits<
|
||||
WS_POPUP | WS_DLGFRAME | WS_CLIPCHILDREN | WS_CLIPSIBLINGS,
|
||||
|
@ -643,7 +643,7 @@ HRESULT STDMETHODCALLTYPE CMenuDeskBar::SetSite(IUnknown *pUnkSite)
|
|||
}
|
||||
|
||||
// get window handle of parent
|
||||
hr = pUnkSite->QueryInterface(IID_ITrayPriv, reinterpret_cast<void **>(&m_Site));
|
||||
hr = pUnkSite->QueryInterface(IID_PPV_ARG(IUnknown, &m_Site));
|
||||
if (FAILED(hr))
|
||||
return hr;
|
||||
|
||||
|
@ -847,6 +847,13 @@ HRESULT STDMETHODCALLTYPE CMenuDeskBar::Popup(POINTL *ppt, RECTL *prcExclude, MP
|
|||
rc.right -= rc.left;
|
||||
rc.bottom -= rc.top;
|
||||
|
||||
if (m_Banner != NULL)
|
||||
{
|
||||
BITMAP bm;
|
||||
::GetObject(m_Banner, sizeof(bm), &bm);
|
||||
rc.right += bm.bmWidth;
|
||||
}
|
||||
|
||||
int x = ppt->x;
|
||||
int y = ppt->y - rc.bottom;
|
||||
int cx = rc.right;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue