[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Full screen mode on windows
From: |
joakim |
Subject: |
Re: Full screen mode on windows |
Date: |
Sat, 31 May 2008 14:53:58 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) |
I would suggest looking at the existing fullscreen option for X:
(set-frame-parameter nil 'fullscreen 'fullboth)
and make that work for w32, if it doesnt already!
Ivan Kanis <address@hidden> writes:
> Hello,
>
> There is nice feature in Putty called full screen mode. It takes away
> all windows decoration including the taskbar.
>
> I would like to implement this feature natively on emacs. I have two
> ideas for the api:
>
> 1) Either I make a function called w32-toggle-fullscreen and do all
> the right thing in C,
>
> 2) Or I could expose the GetWindowLongPtr, SetWindowLongPtr and
> SetWindowPos as lisp function and write the toggle in lisp.
>
> Which approach is the most likely to get included?
>
> For info here is the Putty code that does the job :
>
> /* Remove the window furniture. */
> style = GetWindowLongPtr(hwnd, GWL_STYLE);
> style &= ~(WS_CAPTION | WS_BORDER | WS_THICKFRAME);
> if (cfg.scrollbar_in_fullscreen)
> style |= WS_VSCROLL;
> else
> style &= ~WS_VSCROLL;
> SetWindowLongPtr(hwnd, GWL_STYLE, style);
>
> /* Resize ourselves to exactly cover the nearest monitor. */
> get_fullscreen_rect(&ss);
> SetWindowPos(hwnd, HWND_TOP, ss.left, ss.top,
> ss.right - ss.left,
> ss.bottom - ss.top,
> SWP_FRAMECHANGED);
>
> Thanks for your feedbacks.
--
Joakim Verona
Re: Full screen mode on windows, Ivan Kanis, 2008/05/31