From 2f10cc5c2823bd9166ac83acb63a01c4b446de02 Mon Sep 17 00:00:00 2001 From: Rob Shearman Date: Tue, 23 Sep 2008 13:31:23 +0100 Subject: [PATCH] include: Add DShellFolderViewEvents to shldisp.idl. --- include/Makefile.in | 1 + include/shdispid.h | 30 ++++++++++++++++++++++++++++++ include/shldisp.idl | 25 +++++++++++++++++++++++++ 3 files changed, 56 insertions(+) create mode 100644 include/shdispid.h diff --git a/include/Makefile.in b/include/Makefile.in index 415ac1b3597..f28cfab44ae 100644 --- a/include/Makefile.in +++ b/include/Makefile.in @@ -373,6 +373,7 @@ SRCDIR_INCLUDES = \ sensapi.h \ setupapi.h \ sfc.h \ + shdispid.h \ shellapi.h \ shlguid.h \ shlobj.h \ diff --git a/include/shdispid.h b/include/shdispid.h new file mode 100644 index 00000000000..5b3fc40d1ef --- /dev/null +++ b/include/shdispid.h @@ -0,0 +1,30 @@ +/* + * DispIds for Shell Interfaces + * + * Copyright (C) 2008 Robert Shearman + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA + */ + +#ifndef _SHDISPID_H_ +#define _SHDISPID_H_ + +#define DISPID_SELECTIONCHANGED 200 +#define DISPID_FILELISTENUMDONE 201 +#define DISPID_VERBINVOKED 202 +#define DISPID_DEFAULTVERBINVOKED 203 +#define DISPID_BEGINDRAG 204 + +#endif /* defined _SHDISPID_H_ */ diff --git a/include/shldisp.idl b/include/shldisp.idl index ee722611304..28c2357bdd7 100644 --- a/include/shldisp.idl +++ b/include/shldisp.idl @@ -25,6 +25,8 @@ import "shtypes.idl"; import "servprov.idl"; import "comcat.idl"; +#include + /***************************************************************************** * IAutoComplete interface */ @@ -84,6 +86,29 @@ interface IFolderViewOC : IDispatch HRESULT SetFolderView( [in] IDispatch *pdisp ); } +[ + uuid(62112aa2-ebe4-11cf-a5fb-0020afe7292d) +] +dispinterface DShellFolderViewEvents +{ + properties: + methods: + [id(DISPID_SELECTIONCHANGED)] + void SelectionChanged(); + + [id(DISPID_FILELISTENUMDONE)] + void EnumDone(); + + [id(DISPID_VERBINVOKED)] + VARIANT_BOOL VerbInvoked(); + + [id(DISPID_DEFAULTVERBINVOKED)] + VARIANT_BOOL DefaultVerbInvoked(); + + [id(DISPID_BEGINDRAG)] + VARIANT_BOOL BeginDrag(); +} + [ uuid(9ba05971-f6a8-11cf-a442-00a0c90a8f39), hidden