Batch #10110 by ragnarok-clanker: forced by an admin (0 lower score(s), 40 changed function(s)); checked with 495 compiled unit(s), including every includer of Source/Client/Application/ApplicationActivation.h, Source/Client/Application/Launcher.h, Source/Client/Browser/BrowserClientSite.h, Source/Client/Browser/BrowserPopupDispatch.h, Source/Client/Browser/WebBrowser.h, Source/Client/Browser/WebEventReceiver.h, Source/Client/Mode/CLoginMode.h, Source/Client/Mode/CMode.h, Source/Client/Mode/ModeTooltip.h, Source/UI/Window/UIWindowMgr.h, Source/Client/Browser/BrowserAddressBar.h, Source/Client/Browser/BrowserAddressEdit.h, Source/Client/Browser/BrowserClose.h, Source/Client/Browser/BrowserCreation.h, Source/Client/Browser/BrowserCursor.h, Source/Client/Browser/BrowserFactory.h, Source/Client/Browser/BrowserFrame.h, Source/Client/Browser/BrowserHostWindow.h, Source/Client/Browser/BrowserInputHandoff.h, Source/Client/Browser/BrowserInterface.h, Source/Client/Browser/BrowserMessages.h, Source/Client/Browser/BrowserRegistry.h, Source/Client/Browser/BrowserSiteAttachment.h, Source/Client/Browser/BrowserWindowSizing.h, Source/UI/Window/WindowFrameUpdate.h. Deletes: Source/Client/Browser/BrowserAddressBar.h, Source/Client/Browser/BrowserAddressEdit.h, Source/Client/Browser/BrowserClose.h, Source/Client/Browser/BrowserCreation.h, Source/Client/Browser/BrowserCursor.h, Source/Client/Browser/BrowserFactory.h, Source/Client/Browser/BrowserFrame.h, Source/Client/Browser/BrowserHostWindow.h, Source/Client/Browser/BrowserInputHandoff.h, Source/Client/Browser/BrowserInterface.h, Source/Client/Browser/BrowserMessages.h, Source/Client/Browser/BrowserRegistry.h, Source/Client/Browser/BrowserSiteAttachment.h, Source/Client/Browser/BrowserWindowSizing.h, Source/UI/Window/WindowFrameUpdate.h
36 lines
964 B
C++
36 lines
964 B
C++
#include "Client/Browser/WebBrowser.h"
|
|
|
|
// OFFSET: 0x00AB2610
|
|
// FUNCTION: fn_17414
|
|
void CWebBrowser::Normalize() {
|
|
if (!this->externalEvents) {
|
|
return;
|
|
}
|
|
|
|
RECT rectangle;
|
|
GetWindowRect(this->browserWindow, &rectangle);
|
|
if (rectangle.right - rectangle.left != this->screenWidth || rectangle.bottom - rectangle.top != this->screenHeight) {
|
|
return;
|
|
}
|
|
|
|
this->browser->put_Visible(VARIANT_FALSE);
|
|
SetWindowLongA(this->browserWindow, GWL_STYLE, WS_CHILD);
|
|
SetParent(this->browserWindow, this->host);
|
|
this->browser->put_FullScreen(VARIANT_FALSE);
|
|
this->browser->put_AddressBar(VARIANT_FALSE);
|
|
SetParent(this->browserWindow, this->host);
|
|
SetWindowLongA(this->browserWindow, GWL_STYLE, WS_CHILD);
|
|
this->browser->put_Visible(VARIANT_TRUE);
|
|
}
|
|
|
|
// OFFSET: 0x00AB2E70
|
|
// FUNCTION: fn_17419
|
|
void CWebBrowser::Poll() {
|
|
if (!IsWindowVisible(this->host)) {
|
|
return;
|
|
}
|
|
|
|
this->Normalize();
|
|
this->RefreshSize();
|
|
this->PollCursor();
|
|
}
|