[browseui, shell32, explorer_new, include]
- Convert browseui to C++/ATL. As part of this, classes in browseui and now registered with .rgs files.
- Add AddressBand, AddressEditBox, BandProxy, BaseBar, BaseBarSite, BrandBand, InternetToolbar, ShellBrowser, ToolsBand, and TravelLog.
- Add stub implementations of commonbrowser, globalfoldersettings, and regtreeoptions.
- Clean up some msvc compile problems in a few files.
- Reorganize some headers to make them better match the Platform SDK.
- Move InlineIsEqualGUID to guiddef.h.
- Create new header files shlguid_undoc.h, shlobj_undoc.h, and shlwapi_undoc.h to hold undocumented types, functions, and GUIDs.
- Move some undocumented definitions declared in explorer_new/todo.h and undoc.h to new headers.
- Rename a few interfaces in explorer_new to the correct name
- Add definition of RBSTR_CHANGERECT to commctrl.h
- IDeskBarClient inherits from IOleWindow, not IUnknown
- HMONITOR was declared in both dxsdk/axextend.idl and wine/wined3d.idl, but not in wtypes.idl where it belongs
- Added Init and Term to CComModule
- Thanks to encoded for solving the browseui linking problem!
svn path=/trunk/; revision=43872
2009-10-31 14:25:45 +00:00
|
|
|
/*
|
|
|
|
* ReactOS Explorer
|
|
|
|
*
|
|
|
|
* Copyright 2009 Andrew Hill <ash77@reactos.org>
|
|
|
|
*
|
|
|
|
* 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
|
|
*/
|
|
|
|
|
2010-02-26 11:43:19 +00:00
|
|
|
#pragma once
|
[browseui, shell32, explorer_new, include]
- Convert browseui to C++/ATL. As part of this, classes in browseui and now registered with .rgs files.
- Add AddressBand, AddressEditBox, BandProxy, BaseBar, BaseBarSite, BrandBand, InternetToolbar, ShellBrowser, ToolsBand, and TravelLog.
- Add stub implementations of commonbrowser, globalfoldersettings, and regtreeoptions.
- Clean up some msvc compile problems in a few files.
- Reorganize some headers to make them better match the Platform SDK.
- Move InlineIsEqualGUID to guiddef.h.
- Create new header files shlguid_undoc.h, shlobj_undoc.h, and shlwapi_undoc.h to hold undocumented types, functions, and GUIDs.
- Move some undocumented definitions declared in explorer_new/todo.h and undoc.h to new headers.
- Rename a few interfaces in explorer_new to the correct name
- Add definition of RBSTR_CHANGERECT to commctrl.h
- IDeskBarClient inherits from IOleWindow, not IUnknown
- HMONITOR was declared in both dxsdk/axextend.idl and wine/wined3d.idl, but not in wtypes.idl where it belongs
- Added Init and Term to CComModule
- Thanks to encoded for solving the browseui linking problem!
svn path=/trunk/; revision=43872
2009-10-31 14:25:45 +00:00
|
|
|
|
|
|
|
class CBrandBand :
|
2013-04-28 08:42:22 +00:00
|
|
|
public CWindowImpl<CBrandBand, CWindow, CControlWinTraits>,
|
|
|
|
public CComCoClass<CBrandBand, &CLSID_BrandBand>,
|
|
|
|
public CComObjectRootEx<CComMultiThreadModelNoCS>,
|
|
|
|
public IDeskBand,
|
|
|
|
public IObjectWithSite,
|
|
|
|
public IInputObject,
|
|
|
|
public IPersistStream,
|
|
|
|
public IOleCommandTarget,
|
|
|
|
public IServiceProvider,
|
2013-07-13 09:06:18 +00:00
|
|
|
public IWinEventHandler,
|
2013-04-28 08:42:22 +00:00
|
|
|
public IDispatch
|
[browseui, shell32, explorer_new, include]
- Convert browseui to C++/ATL. As part of this, classes in browseui and now registered with .rgs files.
- Add AddressBand, AddressEditBox, BandProxy, BaseBar, BaseBarSite, BrandBand, InternetToolbar, ShellBrowser, ToolsBand, and TravelLog.
- Add stub implementations of commonbrowser, globalfoldersettings, and regtreeoptions.
- Clean up some msvc compile problems in a few files.
- Reorganize some headers to make them better match the Platform SDK.
- Move InlineIsEqualGUID to guiddef.h.
- Create new header files shlguid_undoc.h, shlobj_undoc.h, and shlwapi_undoc.h to hold undocumented types, functions, and GUIDs.
- Move some undocumented definitions declared in explorer_new/todo.h and undoc.h to new headers.
- Rename a few interfaces in explorer_new to the correct name
- Add definition of RBSTR_CHANGERECT to commctrl.h
- IDeskBarClient inherits from IOleWindow, not IUnknown
- HMONITOR was declared in both dxsdk/axextend.idl and wine/wined3d.idl, but not in wtypes.idl where it belongs
- Added Init and Term to CComModule
- Thanks to encoded for solving the browseui linking problem!
svn path=/trunk/; revision=43872
2009-10-31 14:25:45 +00:00
|
|
|
{
|
|
|
|
private:
|
2013-04-28 08:42:22 +00:00
|
|
|
CComPtr<IDockingWindowSite> fSite;
|
|
|
|
DWORD fProfferCookie;
|
|
|
|
int fCurrentFrame;
|
|
|
|
int fMaxFrameCount;
|
|
|
|
HBITMAP fImageBitmap;
|
|
|
|
int fBitmapSize;
|
|
|
|
DWORD fAdviseCookie;
|
[browseui, shell32, explorer_new, include]
- Convert browseui to C++/ATL. As part of this, classes in browseui and now registered with .rgs files.
- Add AddressBand, AddressEditBox, BandProxy, BaseBar, BaseBarSite, BrandBand, InternetToolbar, ShellBrowser, ToolsBand, and TravelLog.
- Add stub implementations of commonbrowser, globalfoldersettings, and regtreeoptions.
- Clean up some msvc compile problems in a few files.
- Reorganize some headers to make them better match the Platform SDK.
- Move InlineIsEqualGUID to guiddef.h.
- Create new header files shlguid_undoc.h, shlobj_undoc.h, and shlwapi_undoc.h to hold undocumented types, functions, and GUIDs.
- Move some undocumented definitions declared in explorer_new/todo.h and undoc.h to new headers.
- Rename a few interfaces in explorer_new to the correct name
- Add definition of RBSTR_CHANGERECT to commctrl.h
- IDeskBarClient inherits from IOleWindow, not IUnknown
- HMONITOR was declared in both dxsdk/axextend.idl and wine/wined3d.idl, but not in wtypes.idl where it belongs
- Added Init and Term to CComModule
- Thanks to encoded for solving the browseui linking problem!
svn path=/trunk/; revision=43872
2009-10-31 14:25:45 +00:00
|
|
|
public:
|
2013-04-28 08:42:22 +00:00
|
|
|
CBrandBand();
|
|
|
|
~CBrandBand();
|
|
|
|
void StartAnimation();
|
|
|
|
void StopAnimation();
|
|
|
|
void SelectImage();
|
[browseui, shell32, explorer_new, include]
- Convert browseui to C++/ATL. As part of this, classes in browseui and now registered with .rgs files.
- Add AddressBand, AddressEditBox, BandProxy, BaseBar, BaseBarSite, BrandBand, InternetToolbar, ShellBrowser, ToolsBand, and TravelLog.
- Add stub implementations of commonbrowser, globalfoldersettings, and regtreeoptions.
- Clean up some msvc compile problems in a few files.
- Reorganize some headers to make them better match the Platform SDK.
- Move InlineIsEqualGUID to guiddef.h.
- Create new header files shlguid_undoc.h, shlobj_undoc.h, and shlwapi_undoc.h to hold undocumented types, functions, and GUIDs.
- Move some undocumented definitions declared in explorer_new/todo.h and undoc.h to new headers.
- Rename a few interfaces in explorer_new to the correct name
- Add definition of RBSTR_CHANGERECT to commctrl.h
- IDeskBarClient inherits from IOleWindow, not IUnknown
- HMONITOR was declared in both dxsdk/axextend.idl and wine/wined3d.idl, but not in wtypes.idl where it belongs
- Added Init and Term to CComModule
- Thanks to encoded for solving the browseui linking problem!
svn path=/trunk/; revision=43872
2009-10-31 14:25:45 +00:00
|
|
|
public:
|
2013-04-28 08:42:22 +00:00
|
|
|
// *** IDeskBand methods ***
|
2024-03-04 15:53:11 +00:00
|
|
|
STDMETHOD(GetBandInfo)(DWORD dwBandID, DWORD dwViewMode, DESKBANDINFO* pdbi) override;
|
2013-04-28 08:42:22 +00:00
|
|
|
|
|
|
|
// *** IObjectWithSite methods ***
|
2024-03-04 15:53:11 +00:00
|
|
|
STDMETHOD(SetSite)(IUnknown* pUnkSite) override;
|
|
|
|
STDMETHOD(GetSite)(REFIID riid, void **ppvSite) override;
|
2013-04-28 08:42:22 +00:00
|
|
|
|
|
|
|
// *** IOleWindow methods ***
|
2024-03-04 15:53:11 +00:00
|
|
|
STDMETHOD(GetWindow)(HWND *lphwnd) override;
|
|
|
|
STDMETHOD(ContextSensitiveHelp)(BOOL fEnterMode) override;
|
2013-04-28 08:42:22 +00:00
|
|
|
|
|
|
|
// *** IDockingWindow methods ***
|
2024-03-04 15:53:11 +00:00
|
|
|
STDMETHOD(CloseDW)(DWORD dwReserved) override;
|
|
|
|
STDMETHOD(ResizeBorderDW)(const RECT* prcBorder, IUnknown* punkToolbarSite, BOOL fReserved) override;
|
|
|
|
STDMETHOD(ShowDW)(BOOL fShow) override;
|
2013-04-28 08:42:22 +00:00
|
|
|
|
|
|
|
// *** IInputObject methods ***
|
2024-03-04 15:53:11 +00:00
|
|
|
STDMETHOD(HasFocusIO)() override;
|
|
|
|
STDMETHOD(TranslateAcceleratorIO)(LPMSG lpMsg) override;
|
|
|
|
STDMETHOD(UIActivateIO)(BOOL fActivate, LPMSG lpMsg) override;
|
2013-04-28 08:42:22 +00:00
|
|
|
|
|
|
|
// *** IPersist methods ***
|
2024-03-04 15:53:11 +00:00
|
|
|
STDMETHOD(GetClassID)(CLSID *pClassID) override;
|
2013-04-28 08:42:22 +00:00
|
|
|
|
|
|
|
// *** IPersistStream methods ***
|
2024-03-04 15:53:11 +00:00
|
|
|
STDMETHOD(IsDirty)() override;
|
|
|
|
STDMETHOD(Load)(IStream *pStm) override;
|
|
|
|
STDMETHOD(Save)(IStream *pStm, BOOL fClearDirty) override;
|
|
|
|
STDMETHOD(GetSizeMax)(ULARGE_INTEGER *pcbSize) override;
|
2013-04-28 08:42:22 +00:00
|
|
|
|
|
|
|
// *** IWinEventHandler methods ***
|
2024-03-04 15:53:11 +00:00
|
|
|
STDMETHOD(OnWinEvent)(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam, LRESULT *theResult) override;
|
|
|
|
STDMETHOD(IsWindowOwner)(HWND hWnd) override;
|
2013-04-28 08:42:22 +00:00
|
|
|
|
|
|
|
// *** IOleCommandTarget methods ***
|
2024-03-04 15:53:11 +00:00
|
|
|
STDMETHOD(QueryStatus)(const GUID *pguidCmdGroup, ULONG cCmds, OLECMD prgCmds[ ], OLECMDTEXT *pCmdText) override;
|
|
|
|
STDMETHOD(Exec)(const GUID *pguidCmdGroup, DWORD nCmdID, DWORD nCmdexecopt, VARIANT *pvaIn, VARIANT *pvaOut) override;
|
2013-04-28 08:42:22 +00:00
|
|
|
|
|
|
|
// *** IServiceProvider methods ***
|
2024-03-04 15:53:11 +00:00
|
|
|
STDMETHOD(QueryService)(REFGUID guidService, REFIID riid, void **ppvObject) override;
|
2013-04-28 08:42:22 +00:00
|
|
|
|
|
|
|
// *** IDispatch methods ***
|
2024-03-04 15:53:11 +00:00
|
|
|
STDMETHOD(GetTypeInfoCount)(UINT *pctinfo) override;
|
|
|
|
STDMETHOD(GetTypeInfo)(UINT iTInfo, LCID lcid, ITypeInfo **ppTInfo) override;
|
|
|
|
STDMETHOD(GetIDsOfNames)(REFIID riid, LPOLESTR *rgszNames, UINT cNames, LCID lcid, DISPID *rgDispId) override;
|
|
|
|
STDMETHOD(Invoke)(DISPID dispIdMember, REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS *pDispParams, VARIANT *pVarResult, EXCEPINFO *pExcepInfo, UINT *puArgErr) override;
|
2013-04-28 08:42:22 +00:00
|
|
|
|
|
|
|
// message handlers
|
|
|
|
LRESULT OnSize(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled);
|
|
|
|
LRESULT OnEraseBkgnd(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled);
|
|
|
|
LRESULT OnPaint(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled);
|
|
|
|
LRESULT OnTimer(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled);
|
|
|
|
|
|
|
|
BEGIN_MSG_MAP(CBrandBand)
|
|
|
|
// MESSAGE_HANDLER(WM_SIZE, OnSize)
|
|
|
|
MESSAGE_HANDLER(WM_ERASEBKGND, OnEraseBkgnd)
|
|
|
|
MESSAGE_HANDLER(WM_PAINT, OnPaint)
|
|
|
|
MESSAGE_HANDLER(WM_TIMER, OnTimer)
|
|
|
|
END_MSG_MAP()
|
|
|
|
|
|
|
|
DECLARE_REGISTRY_RESOURCEID(IDR_BRANDBAND)
|
|
|
|
DECLARE_NOT_AGGREGATABLE(CBrandBand)
|
|
|
|
|
|
|
|
DECLARE_PROTECT_FINAL_CONSTRUCT()
|
|
|
|
|
|
|
|
BEGIN_COM_MAP(CBrandBand)
|
|
|
|
COM_INTERFACE_ENTRY_IID(IID_IDeskBand, IDeskBand)
|
|
|
|
COM_INTERFACE_ENTRY_IID(IID_IObjectWithSite, IObjectWithSite)
|
|
|
|
COM_INTERFACE_ENTRY_IID(IID_IOleWindow, IOleWindow)
|
|
|
|
COM_INTERFACE_ENTRY_IID(IID_IDockingWindow, IDockingWindow)
|
|
|
|
COM_INTERFACE_ENTRY_IID(IID_IInputObject, IInputObject)
|
|
|
|
COM_INTERFACE_ENTRY_IID(IID_IPersist, IPersist)
|
|
|
|
COM_INTERFACE_ENTRY_IID(IID_IPersistStream, IPersistStream)
|
|
|
|
COM_INTERFACE_ENTRY_IID(IID_IWinEventHandler, IWinEventHandler)
|
|
|
|
COM_INTERFACE_ENTRY_IID(IID_IOleCommandTarget, IOleCommandTarget)
|
|
|
|
COM_INTERFACE_ENTRY_IID(IID_IServiceProvider, IServiceProvider)
|
|
|
|
COM_INTERFACE_ENTRY_IID(IID_IDispatch, IDispatch)
|
|
|
|
END_COM_MAP()
|
[browseui, shell32, explorer_new, include]
- Convert browseui to C++/ATL. As part of this, classes in browseui and now registered with .rgs files.
- Add AddressBand, AddressEditBox, BandProxy, BaseBar, BaseBarSite, BrandBand, InternetToolbar, ShellBrowser, ToolsBand, and TravelLog.
- Add stub implementations of commonbrowser, globalfoldersettings, and regtreeoptions.
- Clean up some msvc compile problems in a few files.
- Reorganize some headers to make them better match the Platform SDK.
- Move InlineIsEqualGUID to guiddef.h.
- Create new header files shlguid_undoc.h, shlobj_undoc.h, and shlwapi_undoc.h to hold undocumented types, functions, and GUIDs.
- Move some undocumented definitions declared in explorer_new/todo.h and undoc.h to new headers.
- Rename a few interfaces in explorer_new to the correct name
- Add definition of RBSTR_CHANGERECT to commctrl.h
- IDeskBarClient inherits from IOleWindow, not IUnknown
- HMONITOR was declared in both dxsdk/axextend.idl and wine/wined3d.idl, but not in wtypes.idl where it belongs
- Added Init and Term to CComModule
- Thanks to encoded for solving the browseui linking problem!
svn path=/trunk/; revision=43872
2009-10-31 14:25:45 +00:00
|
|
|
};
|