Initial commit: Complete open-source Decal rebuild
All 5 phases of the open-source Decal rebuild: Phase 1: 14 decompiled .NET projects (Interop.*, Adapter, FileService, DecalUtil) Phase 2: 10 native DLLs rewritten as C# COM servers with matching GUIDs - DecalDat, DHS, SpellFilter, DecalInput, DecalNet, DecalFilters - Decal.Core, DecalControls, DecalRender, D3DService Phase 3: C++ shims for Inject.DLL (D3D9 hooking) and LauncherHook.DLL Phase 4: DenAgent WinForms tray application Phase 5: WiX installer and build script 25 C# projects building with 0 errors. Native C++ projects require VS 2022 + Windows SDK (x86). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
commit
d1442e3747
1382 changed files with 170725 additions and 0 deletions
88
Native/Inject/Attic/Copy of Panel.h
Normal file
88
Native/Inject/Attic/Copy of Panel.h
Normal file
|
|
@ -0,0 +1,88 @@
|
|||
// Panel.h : Declaration of the cPanel
|
||||
|
||||
#ifndef __PANEL_H_
|
||||
#define __PANEL_H_
|
||||
|
||||
#include "resource.h" // main symbols
|
||||
|
||||
#include "SinkImpl.h"
|
||||
|
||||
#define BUTTON_CLOSE 1
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// cPanel
|
||||
class ATL_NO_VTABLE cPanel :
|
||||
public CComObjectRootEx<CComMultiThreadModel>,
|
||||
public ILayerRenderImpl,
|
||||
public ILayerImpl< cPanel >,
|
||||
public ILayerMouseImpl,
|
||||
public ICommandEventsImpl< BUTTON_CLOSE, cPanel >,
|
||||
public cNoEventsImpl,
|
||||
public IPanel
|
||||
{
|
||||
public:
|
||||
cPanel();
|
||||
|
||||
_bstr_t m_strTitle;
|
||||
long m_nIcon, m_nIconModule;
|
||||
|
||||
long m_nActiveView;
|
||||
|
||||
CComPtr< IImageCache > m_pBorder;
|
||||
CComPtr< IImageCache > m_pBackground;
|
||||
CComPtr< IFontCache > m_pTitle;
|
||||
CComPtr< IPanelSink > m_pSink;
|
||||
|
||||
long m_nTop;
|
||||
long m_nLeft;
|
||||
long m_nHeight;
|
||||
long m_nWidth;
|
||||
|
||||
long m_DeltaX;
|
||||
long m_DeltaY;
|
||||
|
||||
bool m_bDragging;
|
||||
|
||||
void hideView();
|
||||
|
||||
void onCreate();
|
||||
void onDestroy();
|
||||
|
||||
BEGIN_COM_MAP(cPanel)
|
||||
COM_INTERFACE_ENTRY(ILayer)
|
||||
COM_INTERFACE_ENTRY(ILayerRender)
|
||||
COM_INTERFACE_ENTRY(IPanel)
|
||||
COM_INTERFACE_ENTRY(ILayerMouse)
|
||||
END_COM_MAP()
|
||||
|
||||
BEGIN_SINK_MAP( cPanel )
|
||||
SINK_ENTRY_EX( BUTTON_CLOSE, DIID_ICommandEvents, DISPID_ACCEPTED, onCloseAccepted )
|
||||
END_SINK_MAP()
|
||||
|
||||
// IPanel
|
||||
public:
|
||||
STDMETHOD(LoadView)(long nPlugin, IView *pView, IUnknown *pSchema);
|
||||
STDMETHOD(get_ActiveView)(/*[out, retval]*/ long *pVal);
|
||||
STDMETHOD(AddView)(long nPluginID, ILayer *pLayer);
|
||||
STDMETHOD(RemoveView)(long nID);
|
||||
STDMETHOD(ActivateView)(long nViewID, ViewParams *pParams);
|
||||
STDMETHOD(Deactivate)();
|
||||
STDMETHOD(putref_Sink)(/*[in]*/ IPanelSink* newVal);
|
||||
|
||||
// ILayerRender Methods
|
||||
STDMETHOD(Render)(ICanvas *);
|
||||
STDMETHOD(Reformat)();
|
||||
|
||||
// ICommandEvents Methods
|
||||
void __stdcall onCloseAccepted(long nID);
|
||||
|
||||
// ILayerMouse Methods
|
||||
STDMETHOD(MouseEnter)(struct MouseState *);
|
||||
STDMETHOD(MouseExit)(struct MouseState *);
|
||||
STDMETHOD(MouseDown)(struct MouseState *pMS);
|
||||
STDMETHOD(MouseUp)(struct MouseState *);
|
||||
STDMETHOD(MouseMove)(struct MouseState *pMS);
|
||||
STDMETHOD(MouseEvent)(long nMsg, long wParam, long lParam);
|
||||
};
|
||||
|
||||
#endif //__PANEL_H_
|
||||
Loading…
Add table
Add a link
Reference in a new issue