rodecomp/Source/Client/BrowserClose.h
2026-10-24 00:35:19 +00:00

24 lines
642 B
C++

#ifndef RAGNAROK_SOURCE_CLIENT_BROWSERCLOSE_H
#define RAGNAROK_SOURCE_CLIENT_BROWSERCLOSE_H
#include "Client/BrowserSiteAttachment.h"
class CMouse;
// Borrowed original browser fields. External events use a separate COM reference
// independent of the client-site dispatch dependency. Auxiliary HWNDs and
// cookie remain untouched even after their host destroys the native children.
struct BrowserClose {
BrowserSiteAttachment& attachment;
IWebBrowser2*& browser;
IUnknown*& externalEvents;
HWND& host;
HWND const& browserWindow;
HWND const& applicationWindow;
int& cursorState;
CMouse& mouse;
bool Close();
};
#endif