mirror of
https://github.com/reactos/reactos.git
synced 2025-01-01 03:54:02 +00:00
[SHELLFIND] Message handler for adding search results
This commit is contained in:
parent
666bf34640
commit
06fd04d7b0
2 changed files with 10 additions and 1 deletions
|
@ -273,6 +273,11 @@ STDMETHODIMP CFindFolder::MessageSFVCB(UINT uMsg, WPARAM wParam, LPARAM lParam)
|
|||
*pViewMode = FVM_DETAILS;
|
||||
return S_OK;
|
||||
}
|
||||
case SFVM_WINDOWCREATED:
|
||||
{
|
||||
SubclassWindow((HWND) wParam);
|
||||
return S_OK;
|
||||
}
|
||||
}
|
||||
return E_NOTIMPL;
|
||||
}
|
||||
|
|
|
@ -3,9 +3,9 @@
|
|||
#include "shellfind.h"
|
||||
|
||||
#define SWM_ADD_ITEM (WM_USER + 0)
|
||||
#define SWM_UPDATE_STATUS (WM_USER + 1)
|
||||
|
||||
class CFindFolder :
|
||||
public CWindowImpl<CFindFolder>,
|
||||
public CComCoClass<CFindFolder, &CLSID_FindFolder>,
|
||||
public CComObjectRootEx<CComMultiThreadModelNoCS>,
|
||||
public IShellFolder2,
|
||||
|
@ -80,6 +80,10 @@ public:
|
|||
|
||||
DECLARE_PROTECT_FINAL_CONSTRUCT()
|
||||
|
||||
BEGIN_MSG_MAP(CFindFolder)
|
||||
MESSAGE_HANDLER(SWM_ADD_ITEM, AddItem)
|
||||
END_MSG_MAP()
|
||||
|
||||
BEGIN_COM_MAP(CFindFolder)
|
||||
COM_INTERFACE_ENTRY_IID(IID_IShellFolder2, IShellFolder2)
|
||||
COM_INTERFACE_ENTRY_IID(IID_IShellFolder, IShellFolder)
|
||||
|
|
Loading…
Reference in a new issue