From: joakim@verona.se
To: Ivan Kanis <expire-by-2008-06-06@kanis.fr>
Cc: emacs-devel@gnu.org
Subject: Re: Full screen mode on windows
Date: Sat, 31 May 2008 14:53:58 +0200 [thread overview]
Message-ID: <m363sur5w9.fsf@verona.se> (raw)
In-Reply-To: <871w3ik9js.fsf@kanis.fr> (Ivan Kanis's message of "Sat, 31 May 2008 13:16:55 +0200")
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 <expire-by-2008-06-06@kanis.fr> 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
next prev parent reply other threads:[~2008-05-31 12:53 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-05-31 11:16 Full screen mode on windows Ivan Kanis
2008-05-31 12:53 ` joakim [this message]
2008-05-31 13:13 ` Eli Zaretskii
2008-05-31 13:25 ` Lennart Borgman (gmail)
2008-05-31 13:52 ` Lennart Borgman (gmail)
2008-05-31 15:28 ` Eli Zaretskii
2008-05-31 15:50 ` Lennart Borgman (gmail)
2008-06-01 2:02 ` Jason Rumney
2008-05-31 18:25 ` Ivan Kanis
2008-05-31 21:11 ` Eli Zaretskii
2008-05-31 21:16 ` Tom Tromey
2008-06-01 1:30 ` Miles Bader
2008-06-01 10:05 ` Ivan Kanis
2008-06-03 6:53 ` Evans Winner
2008-06-03 7:01 ` dhruva
2008-06-03 20:56 ` Evans Winner
2008-06-03 7:23 ` Thien-Thi Nguyen
2008-06-04 17:57 ` Ivan Kanis
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m363sur5w9.fsf@verona.se \
--to=joakim@verona.se \
--cc=emacs-devel@gnu.org \
--cc=expire-by-2008-06-06@kanis.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).