Skip to content

Commit 5a6f902

Browse files
committed
update toolbar on fullscreen enter and exit
1 parent 4b810cc commit 5a6f902

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

FlashpointSecurePlayer/WebBrowserMode.cs

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ private IntPtr LowLevelMouseProc(int nCode, IntPtr wParam, IntPtr lParam) {
2727
// always confirm the message first so we don't do unnecessary work
2828
if (wParam.ToInt32() == WM_MOUSEMOVE) {
2929
if (Fullscreen) {
30-
ShowToolbar();
30+
ShowToolBar();
3131
}
3232
}
3333
}
@@ -158,6 +158,8 @@ private bool Fullscreen {
158158
statusBarStatusStrip.Visible = false;
159159
closableWebBrowser.Dock = DockStyle.Fill;
160160

161+
ShowToolBar();
162+
161163
// set Windows Hook for toolbar
162164
if (mouseHook == IntPtr.Zero && lowLevelMouseProc != null) {
163165
mouseHook = SetWindowsHookEx(HookType.WH_MOUSE_LL, lowLevelMouseProc, IntPtr.Zero, 0);
@@ -179,6 +181,8 @@ private bool Fullscreen {
179181
}
180182
}
181183

184+
ShowToolBar();
185+
182186
WINDOWPLACEMENT windowPlacement = fullscreenWindowPlacement;
183187

184188
// need to do this first to reset the window to its former size
@@ -433,7 +437,7 @@ static public void DeactivateMode() {
433437

434438
private bool isActive = false;
435439

436-
private void ShowToolbar() {
440+
private void ShowToolBar() {
437441
// this is checked in LowLevelMouseProc because
438442
// otherwise plugins such as Viscape which
439443
// create their own window can steal the
@@ -708,7 +712,7 @@ private void WebBrowserMode_Activated(object sender, EventArgs e) {
708712
Application.AddMessageFilter(messageFilter);
709713
}
710714

711-
ShowToolbar();
715+
ShowToolBar();
712716
}
713717

714718
private void WebBrowserMode_Deactivate(object sender, EventArgs e) {
@@ -718,7 +722,7 @@ private void WebBrowserMode_Deactivate(object sender, EventArgs e) {
718722
Application.RemoveMessageFilter(messageFilter);
719723
}
720724

721-
ShowToolbar();
725+
ShowToolBar();
722726
}
723727

724728
private void closableWebBrowser_Navigated(object sender, WebBrowserNavigatedEventArgs e) {

0 commit comments

Comments
 (0)