mirror of
https://github.com/reactos/reactos.git
synced 2025-01-03 21:09:19 +00:00
[browseui]
- Improve the stub for CAddressEditBox::SetOwner to make the rest of browseui happy for now - In CShellBrowser::Initialize browse to the pidl that is passed as parameter instead of always browsing to the desktop folder - Fix a bug in atl class CContainedWindowT::DefWindowProc that was calling the window proc with an invalid hwnd. svn path=/trunk/; revision=59927
This commit is contained in:
parent
0b93a97e44
commit
bbb71f8ed5
3 changed files with 4 additions and 12 deletions
|
@ -50,7 +50,7 @@ CAddressEditBox::~CAddressEditBox()
|
|||
HRESULT STDMETHODCALLTYPE CAddressEditBox::SetOwner(IUnknown *)
|
||||
{
|
||||
// connect to browser connection point
|
||||
return E_NOTIMPL;
|
||||
return 0;
|
||||
}
|
||||
|
||||
HRESULT STDMETHODCALLTYPE CAddressEditBox::FileSysChange(long param8, long paramC)
|
||||
|
|
|
@ -798,17 +798,12 @@ HRESULT CShellBrowser::Initialize(LPITEMIDLIST pidl, long b, long c, long d)
|
|||
_AtlBaseModule.GetModuleInstance(), 0);
|
||||
fStatusBarVisible = true;
|
||||
|
||||
LPITEMIDLIST desktopPIDL;
|
||||
FOLDERSETTINGS newFolderSettings;
|
||||
|
||||
// browse desktop
|
||||
hResult = SHGetFolderLocation(NULL, CSIDL_DESKTOP, NULL, 0, &desktopPIDL);
|
||||
if (FAILED(hResult))
|
||||
return hResult;
|
||||
// browse
|
||||
newFolderSettings.ViewMode = FVM_LIST;
|
||||
newFolderSettings.fFlags = 0;
|
||||
hResult = BrowseToPIDL(desktopPIDL, BTP_UPDATE_NEXT_HISTORY);
|
||||
ILFree(desktopPIDL);
|
||||
hResult = BrowseToPIDL(pidl, BTP_UPDATE_NEXT_HISTORY);
|
||||
if (FAILED(hResult))
|
||||
return hResult;
|
||||
|
||||
|
|
|
@ -585,10 +585,7 @@ public:
|
|||
|
||||
LRESULT DefWindowProc(UINT uMsg, WPARAM wParam, LPARAM lParam)
|
||||
{
|
||||
CWindowImplBaseT<TBase, TWinTraits> *pThis;
|
||||
|
||||
pThis = reinterpret_cast<CWindowImplBaseT<TBase, TWinTraits> *>(this);
|
||||
return ::CallWindowProc(m_pfnSuperWindowProc, pThis->m_hWnd, uMsg, wParam, lParam);
|
||||
return ::CallWindowProc(m_pfnSuperWindowProc, this->m_hWnd, uMsg, wParam, lParam);
|
||||
}
|
||||
|
||||
BOOL SubclassWindow(HWND hWnd)
|
||||
|
|
Loading…
Reference in a new issue