Decompile fn_45435 (CWebBrowser::CreateHostWindow)

Batch #14564 by Yommy: 1 byte-identical, 0 confirmed by peer review.

- fn_45435 CWebBrowser::CreateHostWindow: byte-identical

Merged automatically: every function is byte-identical to the original.
This commit is contained in:
ragnarok-clanker 2026-11-07 11:13:45 +00:00
commit c5c985341c

View file

@ -4,12 +4,9 @@
// OFFSET: 0x00AB29D0
// FUNCTION: fn_45435
bool CWebBrowser::CreateHostWindow(HWND parent, HINSTANCE instance, int width, int height) {
WNDCLASSEXA windowClass{};
windowClass.cbSize = sizeof(windowClass);
windowClass.lpfnWndProc = BrowserHostProc;
windowClass.hInstance = instance;
windowClass.hIcon = LoadIconA(instance, MAKEINTRESOURCEA(123));
windowClass.lpszClassName = "ROWebBrowser";
WNDCLASSEXA windowClass = {
sizeof(WNDCLASSEXA), 0, BrowserHostProc, 0, 0, instance, LoadIconA(instance, MAKEINTRESOURCEA(123)), nullptr, nullptr, nullptr, "ROWebBrowser", nullptr
};
RegisterClassExA(&windowClass);
this->host = CreateWindowExA(0, "ROWebBrowser", g_windowName, WS_POPUP | WS_OVERLAPPEDWINDOW, 0, 0, width, height, parent, nullptr, instance, nullptr);
if (!this->host) {